Skip to content

Commit

Permalink
fix(ci): fix the cross build issue (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sassman authored Oct 31, 2024
1 parent 76f7c80 commit 42d12f3
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
rust: ["nightly", "stable"]
runs-on: ${{ matrix.version }}
continue-on-error: ${{ matrix.rust == 'nightly' }}
environment: build
steps:
- uses: actions/checkout@v4
- name: setup | rust
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
types: [created]
jobs:
rebase:
environment: rebase
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release-binary-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,27 @@ jobs:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
if: ${{ matrix.cross == true }}
with:
tool: cross
- name: build with cross
if: ${{ matrix.cross == true }}
shell: bash
run: cross build --locked --release --target ${{ matrix.target }}
- name: smoke test
if: ${{ matrix.cross == true }}
shell: bash
run: |
cross run --locked --release --target ${{ matrix.target }} -- --help
- name: build with cargo
if: ${{ matrix.cross != true }}
shell: bash
run: cargo build --locked --release --target ${{ matrix.target }}
- name: smoke test with cargo
if: ${{ matrix.cross != true }}
shell: bash
run: |
cargo run --locked --release --target ${{ matrix.target }} -- --help
- name: Create Archive
id: archive
shell: bash
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
name: post / cargo publish
needs: doing-a-build
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- name: setup | rust
Expand All @@ -37,7 +36,6 @@ jobs:
name: post / github release
needs: publish
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- name: setup | rust
Expand Down

0 comments on commit 42d12f3

Please sign in to comment.