Skip to content

Commit

Permalink
build command
Browse files Browse the repository at this point in the history
  • Loading branch information
alfiankan authored Feb 22, 2024
1 parent 6696945 commit 46170e7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,17 @@ jobs:
with:
submodules: 'true'
- uses: goto-bus-stop/setup-zig@v2
- run: zig build test
- name: Upload to release linux amd64
- run: |
mkdir -p bin
rm -rf zig-cache && zig build -Dtarget=aarch64-linux-musl --summary all && cp zig-out/bin/grepe bin/grepe-linux-arm64
rm -rf zig-cache && zig build -Dtarget=x86_64-linux-musl --summary all && cp zig-out/bin/grepe bin/grepe-linux-amd64
rm -rf zig-cache && zig build -Dtarget=aarch64-macos-none --summary all && cp zig-out/bin/grepe bin/grepe-darwin-arm64
rm -rf zig-cache && zig build -Dtarget=x86_64-macos-none --summary all && cp zig-out/bin/grepe bin/grepe-darwin-amd64
rm -rf zig-cache && zig build -Dtarget=aarch64-linux-musl --summary all && cp zig-out/bin/grepe-test bin/grepe-test-linux-arm64
rm -rf zig-cache && zig build -Dtarget=x86_64-linux-musl --summary all && cp zig-out/bin/grepe-test bin/grepe-test-linux-amd64
rm -rf zig-cache && zig build -Dtarget=aarch64-macos-none --summary all && cp zig-out/bin/grepe-test bin/grepe-test-darwin-arm64
rm -rf zig-cache && zig build -Dtarget=x86_64-macos-none --summary all && cp zig-out/bin/grepe-test bin/grepe-test-darwin-amd64
- name: Upload to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 46170e7

Please sign in to comment.