Compare commits
5 Commits
0.1.0
...
1df9395324
| Author | SHA1 | Date | |
|---|---|---|---|
| 1df9395324 | |||
| 1062787e18 | |||
| dfc2a0668c | |||
| 1cda4d05b3 | |||
| aed00324f6 |
@@ -1,8 +1,21 @@
|
|||||||
|
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
|
||||||
name: Build
|
name: Build
|
||||||
run-name: ${{ gitea.actor }} is building
|
run-name: ${{ gitea.actor }} is building
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build:
|
||||||
|
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:
|
release:
|
||||||
name: ${{ matrix.target }}
|
name: ${{ matrix.target }}
|
||||||
@@ -28,7 +41,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: zig-totp-${{matrix.target }}
|
name: zig-totp-${{matrix.target }}
|
||||||
path: zig-out
|
path: zig-out/bin/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
9
build.sh
Executable file
9
build.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
find src | entr -c sh -c 'echo "\n\n\n\n" ; zig build test 2>&1 | cat; echo "\n\n\n" ; date'
|
||||||
|
|
||||||
|
# build exe for windows
|
||||||
|
# doesn't work anymore, because I added the version number as module "config" to the
|
||||||
|
# root_module. In main,zig we import the module. This only works when building
|
||||||
|
# using the build.zig file, but not when building without a build file.
|
||||||
|
#zig build-exe src/main.zig -O ReleaseSmall -fstrip -fsingle-threaded -target x86_64-windows
|
||||||
|
|
||||||
|
zig build && ./zig-out/bin/zig-totp list
|
||||||
Reference in New Issue
Block a user