diff --git a/.github/workflows/cross-platform.yml b/.github/workflows/cross-platform.yml index 98dd3c0e..d3e37a52 100644 --- a/.github/workflows/cross-platform.yml +++ b/.github/workflows/cross-platform.yml @@ -2,28 +2,40 @@ on: push name: foxar pipeline jobs: tests: - name: build ${{ matrix.job.target }} (${{ matrix.job.os }}) + name: build ${{ matrix.job.name }} runs-on: ${{ matrix.job.os }} strategy: matrix: job: - os: ubuntu-latest target: x86_64-unknown-linux-gnu + name: linux-amd64 - os: ubuntu-latest target: aarch64-unknown-linux-gnu + name: linux-arm64 - os: macos-latest target: x86_64-apple-darwin + name: darwin-amd64 - os: macos-latest target: aarch64-apple-darwin + name: darwin-arm64 - os: windows-latest target: x86_64-pc-windows-msvc + name: windows-amd64 steps: - name: Checkout uses: actions/checkout@v3 - - name: Rust - uses: dtolnay/rust-toolchain@stable + - name: Toolchain + uses: actions-rs/toolchain@v1 with: - targets: ${{ matrix.job.target }} + profile: minimal + toolchain: stable + override: true + target: ${{ matrix.job.target }} + - name: Check + uses: actions-rs/cargo@v1 + with: + command: check - name: Git run: | git config --global user.name "GitHub Actions Bot" @@ -46,9 +58,8 @@ jobs: with: distribution: Ubuntu-20.04 set-as-default: true - - name: Cache - uses: Swatinem/rust-cache@v2 - name: Test - run: cargo test --all --all-features - - name: Build - run: cargo build + uses: actions-rs/cargo@v1 + with: + command: test + args: --all --all-features diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index d1004a95..80370c06 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v3 - uses: EmbarkStudios/cargo-deny-action@v1 with: - command: check advisories bans sources + command: check all # Clear out arguments to not pass `--all-features` to `cargo deny`. # `foxar-cli` has an `openssl` feature which enables banned dependencies arguments: "" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 355cfdad..7eebd40c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,8 +20,8 @@ jobs: - name: Compute release name and tag id: release_info run: - echo "::set-output name=tag_name::${GITHUB_REF_NAME}" - echo "::set-output name=release_name::${GITHUB_REF_NAME}" + echo "tag_name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT + echo "release_name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT - name: Build changelog id: build_changelog uses: mikepenz/release-changelog-builder-action@v2 diff --git a/deny.toml b/deny.toml index 37d7afc5..3bdd81f0 100644 --- a/deny.toml +++ b/deny.toml @@ -49,6 +49,7 @@ allow = [ "WTFPL", "BSL-1.0", "0BSD", + "CORE" ] # Allow 1 or more licenses on a per-crate basis, so that particular licenses @@ -96,4 +97,4 @@ license-files = [ unknown-registry = "warn" # Lint level for what to happen when a crate from a git repository that is not # in the allow list is encountered -unknown-git = "allow" \ No newline at end of file +unknown-git = "allow"