Reworked Gitea Actions
All checks were successful
Build / Build (push) Successful in 1m52s

This commit is contained in:
simon 2025-05-19 21:24:23 +02:00
parent ae2879de41
commit 1f05960ffc

View File

@ -1,33 +1,28 @@
name: ProtoGen Action Runner name: Build
on: [push]
on:
push:
branches:
- master
jobs: jobs:
build: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: golang:1.23 image: golang:latest
options: --network host
steps: steps:
- name: Checkout Repository - run: |
uses: actions/checkout@v3 apt-get update
apt-get install -y nodejs npm
- name: Set up Go - name: Check out repository code
uses: actions/setup-go@v4 uses: actions/checkout@v4
with: - run: echo "The ${{ gitea.repository }} repository has been cloned to the runner."
go-version: '1.23' - name: List files in the repository
- name: Build Codegen Binary
run: | run: |
make build ls ${{ gitea.workspace }}
mkdir -p dist - run: go mod tidy
mv alox.protogen dist/ - run: make build
- run: ls -lah ${{ gitea.workspace }}
- name: Upload Artifact - name: Upload Build Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: alox-protogen name: alox.protogen
path: dist/alox.protogen path: ./alox.protogen
- run: echo "This job's status is ${{ job.status }}."