Skip to content

Commit

Permalink
ci: remove cross (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Jan 27, 2025
1 parent 3c81faa commit d300724
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,15 @@ jobs:
profile: ${{ github.ref_name == github.event.repository.default_branch && fromJson('["dev", "release"]') || fromJson('["dev"]') }}
platform:
- target: aarch64-unknown-linux-musl
os: ubuntu-24.04
command: cross
os: ubuntu-24.04-arm
- target: x86_64-unknown-linux-musl
os: ubuntu-24.04
command: cargo
- target: aarch64-apple-darwin
os: macos-14
command: cargo
- target: x86_64-apple-darwin
os: macos-14
command: cargo
- target: x86_64-pc-windows-msvc
os: windows-2022
command: cargo
runs-on: ${{ matrix.platform.os }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -43,7 +38,7 @@ jobs:
shell: bash -xe {0}
steps:
- name: Install musl tools
if: matrix.platform.target == 'x86_64-unknown-linux-musl'
if: ${{ endsWith(matrix.platform.target, '-unknown-linux-musl') }}
run: |
sudo apt-get install -y musl-tools --no-install-recommends
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -55,12 +50,7 @@ jobs:
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
with:
key: ${{ matrix.profile }}-${{ matrix.platform.target }}
- name: Install cross
if: ${{ matrix.platform.command == 'cross' }}
uses: taiki-e/install-action@a7adeb15af2926b0ac7478ad165047cd2d8ba350 # v2.47.18
with:
tool: cross
- run: ${{ matrix.platform.command }} build --locked --bins ${{ matrix.profile == 'release' && '--release' || '' }} --target ${{ matrix.platform.target }}
- run: cargo build --locked --bins ${{ matrix.profile == 'release' && '--release' || '' }} --target ${{ matrix.platform.target }}
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: ${{ matrix.profile }}-${{ matrix.platform.target }}
Expand Down

0 comments on commit d300724

Please sign in to comment.