Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Dec 9, 2024
1 parent 048354e commit c7f8b72
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,24 @@ jobs:
matrix:
os:
- ubuntu-latest
toolchain:
- 1.77.2

steps:
- uses: actions/checkout@v2
- uses: extractions/setup-just@v1
- uses: taiki-e/install-action@v2
with:
just-version: 1.25.2
tool: just@1.25.2,cross@v0.2.5
- uses: Swatinem/rust-cache@v2
with:
key: ${{ runner.os }}-${{ hashFiles('Cargo.lock') }}-${{ matrix.toolchain }}
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
toolchain: 1.77.2
targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl
- name: Install musl tools
run: sudo apt-get install -y musl-tools
run: |
sudo apt-get install -y musl-tools
- name: Build binary (x86 and ARM64)
run: just cargo-build
run: just build-binaries
- name: Generate artifacts
run: just release-artifacts
- uses: actions/upload-artifact@v3
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
matrix:
os:
- ubuntu-latest
# - macos-latest
- macos-latest

toolchain:
- 1.77.2
# - stable
# - nightly
- stable
- nightly

steps:
- uses: actions/checkout@v4
Expand All @@ -38,7 +38,7 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
components: clippy, rustfmt
targets: x86_64-unknown-linux-musl,aarch64-unknown-linux-musl
targets: x86_64-unknown-linux-musl
- uses: Swatinem/rust-cache@v2
- name: Musl Dependencies
run: sudo apt install musl-tools -y
Expand Down
5 changes: 4 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ default:
# Build application
cargo-build:
cargo build --release --locked --target x86_64-unknown-linux-musl
cargo build --release --locked --target aarch64-unknown-linux-musl

# Build binaries
build-binaries: cargo-build
cross build --target aarch64-unknown-linux-musl --release

# Clippy check
cargo-clippy-check:
Expand Down

0 comments on commit c7f8b72

Please sign in to comment.