Skip to content

Commit

Permalink
Static link on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
keesverruijt committed Sep 17, 2024
1 parent 281fb6d commit 2530c18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --release
- name: Setup latest Alpine linux
uses: jirutka/setup-alpine@1
- name: Build in Alpine chroot
run: |
cat /etc/alpine-release
apk add git curl bash g++ musl-dev make perl
curl -sSf https://sh.rustup.rs | bash -s -- -y
PATH="$HOME/.cargo/bin:$PATH"
cargo build --release
- name: Run tests
run: cargo test --release --verbose
- name: Upload artifacts
Expand Down
4 changes: 4 additions & 0 deletions demo/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh

docker buildx build --no-cache -t keesverruijt/mayara:latest .

0 comments on commit 2530c18

Please sign in to comment.