fix(deps): update rust crate serde_json to v1.0.134 #192
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
SQLX_OFFLINE: "true" | |
jobs: | |
unit-tests-darwin: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
steps: | |
- name: Ensure musl installed | |
run: rustup target add ${{ matrix.arch }}-apple-darwin | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- name: Run unit tests | |
run: cargo test --target ${{ matrix.arch }}-apple-darwin | |
unit-tests-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: rust:1.78-bookworm | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
steps: | |
- name: Ensure toolchain installed | |
run: | | |
dpkg --add-architecture arm64 \ | |
&& apt-get update \ | |
&& apt-get install -y musl-dev:arm64 musl-dev musl-tools musl llvm clang qemu-user \ | |
&& rustup target add ${{ matrix.arch }}-unknown-linux-musl | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2 | |
- name: Run unit tests | |
run: cargo test --target ${{ matrix.arch }}-unknown-linux-musl | |
build-release-darwin: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Ensure toolchain installed | |
run: rustup target add ${{ matrix.arch }}-apple-darwin | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Build final release binary | |
run: cargo build --release --target ${{ matrix.arch }}-apple-darwin --verbose | |
- name: Upload artifact | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 | |
with: | |
name: iam-assumer-darwin-${{ matrix.arch }} | |
path: target/${{ matrix.arch }}-apple-darwin/release/iam-assumer | |
build-release-linux: | |
runs-on: ubuntu-latest | |
container: | |
image: rust:1.78-bookworm | |
strategy: | |
matrix: | |
arch: [x86_64, aarch64] | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- name: Ensure toolchain installed | |
run: | | |
dpkg --add-architecture arm64 \ | |
&& apt-get update \ | |
&& apt-get install -y musl-dev:arm64 musl-dev musl-tools musl llvm clang qemu-user \ | |
&& rustup target add ${{ matrix.arch }}-unknown-linux-musl | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Build final release binary | |
run: cargo build --release --target ${{ matrix.arch }}-unknown-linux-musl --verbose | |
- name: Upload artifact | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4 | |
with: | |
name: iam-assumer-linux-${{ matrix.arch }} | |
path: target/${{ matrix.arch }}-unknown-linux-musl/release/iam-assumer | |