Skip to content

Commit

Permalink
Modify github actions pipeline (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky authored Feb 9, 2024
1 parent 4ecdecd commit 164b4cb
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/cross-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/deny.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
unknown-git = "allow"

0 comments on commit 164b4cb

Please sign in to comment.