Compare commits

...

5 Commits

Author SHA1 Message Date
168c917e04 remove matrix build
All checks were successful
Build / build (push) Successful in 27s
the non-matrix build is much faster
2026-01-20 07:31:01 +01:00
2cf4565fd1 add binary for linux-gnu and fix some other stuff
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 21s
Build / x86_64-linux-musl (push) Successful in 21s
Build / x86_64-windows (push) Successful in 21s
Build / build (push) Successful in 28s
2026-01-20 07:26:27 +01:00
8b2c3cff79 use version in all places and create artifact for build task
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 21s
Build / build (push) Successful in 24s
Build / x86_64-linux-musl (push) Successful in 21s
Build / x86_64-windows (push) Successful in 21s
2026-01-20 07:08:21 +01:00
a32f097bea try env variables
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 21s
Build / build (push) Successful in 23s
Build / x86_64-linux-musl (push) Successful in 21s
Build / x86_64-windows (push) Successful in 21s
2026-01-20 07:01:10 +01:00
91b3545702 remove upload.sh, because I committed my token
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 22s
Build / build (push) Successful in 24s
Build / x86_64-linux-musl (push) Successful in 22s
Build / x86_64-windows (push) Successful in 22s
2026-01-19 20:00:52 +01:00
2 changed files with 10 additions and 33 deletions

View File

@@ -2,45 +2,26 @@
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/0.14.1/zig-x86_64-linux-0.14.1.tar.xz
- run: tar xfv zig-x86_64-linux-0.14.1.tar.xz
- run: ./zig-x86_64-linux-0.14.1/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-musl
- run: ./zig-x86_64-linux-0.14.1/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-windows
release:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-linux-musl
- target: x86_64-linux-gnu
- target: x86_64-windows
steps:
- run: printenv
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: ''
- run: wget http://172.17.0.1:8081/repository/ziglang.org/download/0.14.1/zig-x86_64-linux-0.14.1.tar.xz
- run: tar xfv zig-x86_64-linux-0.14.1.tar.xz
- run: ./zig-x86_64-linux-0.14.1/zig build -Doptimize=ReleaseSmall -Dtarget=${{ matrix.target }} -Dexe_name=zig-totp-$GITHUB_REF_NAME-${{ matrix.target }}
- 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-${{matrix.target }}
name: zig-totp
path: zig-out/bin/

View File

@@ -1,4 +0,0 @@
#!/bin/bash
curl --user andi:3fd33c5fdad991b34fcb33b77b68251dfeaf0b3f \
--upload-file zig-out/bin/zig-totp \
https://git.lucares.de/api/packages/andi/generic/zig-totp/0.0.1-1/zig-totp-0.0.1-1