Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,26 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
rust: [stable]
include:
- os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
rust: stable
target: aarch64-unknown-linux-gnu
- os: macOS-latest
rust: stable
target: x86_64-apple-darwin
- os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc

runs-on: ${{ matrix.os }}

steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v1
- name: Run tests
run: cargo test
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ matrix.rust }}
targets: ${{ matrix.target }}
- name: Run tests
run: cargo test
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,39 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, macOS-latest, windows-latest]
rust: [stable]

runs-on: ${{ matrix.os }}

steps:
- name: Setup Rust
uses: hecrj/setup-rust-action@v1
uses: dtolnay/rust-toolchain@v1
with:
rust-version: ${{ matrix.rust }}
toolchain: ${{ matrix.rust }}
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3
- name: Setup MUSL
if: matrix.os == 'ubuntu-latest'
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Setup MUSL aarch64
if: matrix.os == 'ubuntu-24.04-arm'
run: |
rustup target add aarch64-unknown-linux-musl
sudo apt-get -qq install musl-tools
- name: Setup aarch64 mac
if: matrix.os == 'macOS-latest'
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
- name: Build for linux
if: matrix.os == 'ubuntu-latest'
run: make release_lnx
- name: Build for linux aarch64
if: matrix.os == 'ubuntu-24.04-arm'
run: make release_lnx_aarch64
- name: Build for macOS
if: matrix.os == 'macOS-latest'
run: make release_mac
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,16 @@ release_lnx:
cargo build --release --target=x86_64-unknown-linux-musl
zip -j ${BIN_NAME}-v${VERSION}-x86_64-lnx.zip target/x86_64-unknown-linux-musl/release/amb?

release_lnx_aarch64:
cargo build --locked --release --target=aarch64-unknown-linux-musl
zip -j ${BIN_NAME}-v${VERSION}-aarch64-linux.zip target/aarch64-unknown-linux-musl/release/amb?

release_win:
cargo build --release --target=x86_64-pc-windows-msvc
7z a ${BIN_NAME}-v${VERSION}-x86_64-win.zip target/x86_64-pc-windows-msvc/release/amb?.exe

release_mac:
cargo build --release --target=x86_64-apple-darwin
cargo build --release --target=aarch64-apple-darwin
zip -j ${BIN_NAME}-v${VERSION}-x86_64-mac.zip target/x86_64-apple-darwin/release/amb?
zip -j ${BIN_NAME}-v${VERSION}-aarch64-mac.zip target/aarch64-apple-darwin/release/amb?