Skip to content

Commit

Permalink
build for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
jcaromiq committed Jun 3, 2024
1 parent 5976737 commit 1420dc1
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,28 @@ env:
CARGO_TERM_COLOR: always

jobs:
test:
Build:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-pc-windows-gnu
archive: tar.gz
- target: x86_64-unknown-linux-musl
archive: tar.gz
- target: x86_64-apple-darwin
archive: tar.gz
steps:
- uses: actions/checkout@v3
- name: Test
run: cargo test --verbose

build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: rustup target add x86_64-unknown-linux-musl && cargo build --verbose --target x86_64-unknown-linux-musl

- uses: actions/checkout@master
- name: Compile and release
uses: rust-build/rust-build.action@v1.4.5
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
TOOLCHAIN_VERSION: 1.76.0
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: ${{ matrix.archive }}
EXTRA_FILES: "README.md LICENSE"
UPLOAD_MODE: "none"

0 comments on commit 1420dc1

Please sign in to comment.