Skip to content

Commit

Permalink
musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
pm100 committed Jan 6, 2024
1 parent 06be61a commit 5436001
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
- name: Run tests
run: cargo test --verbose

- name: Setup MUSL
run: |
sudo apt-get -qq install musl-tools
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand Down
40 changes: 38 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
./target/release/mac-db65
- name: ReleaseLinux
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-latest-not'
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,4 +71,40 @@ jobs:
files: |
./target/release/db65
build-musl:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

- name: Setup MUSL
run: |
sudo apt-get -qq install musl-tools
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-musl

- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target x86_64-unknown-linux-musl

- name: ReleaseMUSL
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prerelease: ${{ contains(github.ref, '-') }}
files: |
./target/release/db65

0 comments on commit 5436001

Please sign in to comment.