Files
zig-totp/.gitea/workflows/build.yaml
Andreas Huber 168c917e04
All checks were successful
Build / build (push) Successful in 27s
remove matrix build
the non-matrix build is much faster
2026-01-20 07:31:01 +01:00

29 lines
1.0 KiB
YAML

# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
name: Build
run-name: ${{ gitea.actor }} is building
on: [push]
env:
ZIG_VERSION: 0.14.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: ''
- run: wget http://172.17.0.1:8081/repository/ziglang.org/download/$ZIG_VERSION/zig-x86_64-linux-${ZIG_VERSION}.tar.xz
- run: tar xfv zig-x86_64-linux-$ZIG_VERSION.tar.xz
- run: ./zig-x86_64-linux-$ZIG_VERSION/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-musl -Dexe_name=zig-totp-x86_64-linux-musl
- run: ./zig-x86_64-linux-$ZIG_VERSION/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-gnu -Dexe_name=zig-totp-x86_64-linux-gnu
- run: ./zig-x86_64-linux-$ZIG_VERSION/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-windows -Dexe_name=zig-totp
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: zig-totp
path: zig-out/bin/