This commit is contained in:
simon 2025-03-22 16:04:05 +01:00
parent 1b59a0cd55
commit 23e67a801e

View File

@ -1,30 +1,19 @@
name: Build and Upload name: Build
on: [push]
on:
push:
branches:
- master
jobs: jobs:
build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: golang:1.22
options: --network host
outputs:
artifact_path: ${{ steps.build_app.outputs.artifact }}
steps: steps:
- name: Checkout Code - run: echo "The job was automatically triggered by a ${{ gitea.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
- name: Install Dependencies - run: echo "The workflow is now ready to test your code on the runner."
run: go mod tidy - name: List files in the repository
- name: Build Application
id: build_app
run: | run: |
mkdir -p dist ls ${{ gitea.workspace }}
go build -o dist/serialToWebsocket . - run: go build .
echo "::set-output name=artifact::dist/serialToWebsocket" - run: echo "This job's status is ${{ job.status }}."