Skip to content

Commit

Permalink
Add linux-x86_64-musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
printfn committed Nov 24, 2023
1 parent e28cc74 commit a8c610c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,20 @@ jobs:
path: target/aarch64-unknown-linux-gnu/release/fend
if-no-files-found: error

- name: Build (linux-x86_64-musl)
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: |
rustup target add x86_64-unknown-linux-musl
cargo build --release --package fend --target x86_64-unknown-linux-musl
- name: Upload artifacts (linux-x86_64-musl)
uses: actions/upload-artifact@v3
if: ${{ matrix.platform == 'ubuntu-latest' }}
with:
name: fend-${{ env.FEND_VERSION }}-linux-x86_64-musl
path: target/x86_64-unknown-linux-musl/release/fend
if-no-files-found: error

- name: Set up Homebrew
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
Expand Down
2 changes: 2 additions & 0 deletions contrib/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ zip --junk-paths "$TMPDIR/artifacts/fend-$NEW_VERSION-linux-aarch64-gnu.zip" \
"$TMPDIR/artifacts/fend-$NEW_VERSION-linux-aarch64-gnu/fend"
zip --junk-paths "$TMPDIR/artifacts/fend-$NEW_VERSION-linux-armv7-gnueabihf.zip" \
"$TMPDIR/artifacts/fend-$NEW_VERSION-linux-armv7-gnueabihf/fend"
zip --junk-paths "$TMPDIR/artifacts/fend-$NEW_VERSION-linux-x86_64-musl.zip" \
"$TMPDIR/artifacts/fend-$NEW_VERSION-linux-x86_64-musl/fend"
zip --junk-paths "$TMPDIR/artifacts/fend-$NEW_VERSION-macos-aarch64.zip" \
"$TMPDIR/artifacts/fend-$NEW_VERSION-macos-aarch64/fend"
zip --junk-paths "$TMPDIR/artifacts/fend-$NEW_VERSION-macos-x64.zip" \
Expand Down

0 comments on commit a8c610c

Please sign in to comment.