use version in all places and create artifact for build task
This commit is contained in:
@@ -13,9 +13,14 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: ''
|
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: 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-0.14.1.tar.xz
|
- run: tar xfv zig-x86_64-linux-$ZIG_VERSION.tar.xz
|
||||||
- run: ./zig-x86_64-linux-0.14.1/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-linux-musl
|
- 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-0.14.1/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-windows
|
- run: ./zig-x86_64-linux-$ZIG_VERSION/zig build -Doptimize=ReleaseSmall -Dtarget=x86_64-windows -Dexe_name=zig-totp.exe
|
||||||
|
- name: upload artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: zig-totp
|
||||||
|
path: zig-out/bin/
|
||||||
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@@ -35,9 +40,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: ''
|
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: 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-0.14.1.tar.xz
|
- run: tar xfv zig-x86_64-linux-$ZIG_VERSION.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: ./zig-x86_64-linux-$ZIG_VERSION/zig build -Doptimize=ReleaseSmall -Dtarget=${{ matrix.target }} -Dexe_name=zig-totp-$GITHUB_REF_NAME-${{ matrix.target }}
|
||||||
- name: upload artifacts
|
- name: upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user