Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try using dtolnay/rust-toolchain over actions/toolchain #46

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Configure toolchain
run: |
rustup toolchain install stable --profile minimal --no-self-update --target ${{ matrix.target }}
rustup default stable
- name: Check
run: cargo check --target ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- run: cargo check --target ${{ matrix.target }}
24 changes: 5 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,49 +23,41 @@ jobs:
- name: linux-x86-64-gnu
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
cross: false
experimental: false

- name: linux-x86-64-musl
os: ubuntu-latest
target: x86_64-unknown-linux-musl
cross: true
experimental: false

- name: linux-armhf-gnu
os: ubuntu-20.04
target: armv7-unknown-linux-gnueabihf
cross: true
experimental: false

- name: linux-arm64-gnu
os: ubuntu-20.04
target: aarch64-unknown-linux-gnu
cross: true
experimental: false

- name: mac-x86-64
os: macos-latest
target: x86_64-apple-darwin
cross: false
experimental: false

- name: mac-arm64
os: macos-11.0
target: aarch64-apple-darwin
cross: true
experimental: true

- name: windows-x86-64
os: windows-latest
target: x86_64-pc-windows-msvc
cross: false
experimental: false

- name: windows-arm64
os: windows-latest
target: aarch64-pc-windows-msvc
cross: true
experimental: true

name: Binaries for ${{ matrix.name }}
Expand All @@ -85,19 +77,13 @@ jobs:
path: ~/.cargo/bin
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('.github/workflows/release.yml') }}

- uses: actions-rs/toolchain@v1
- name: Build binary
uses: houseabsolute/actions-rust-cross@v0
with:
target: ${{ matrix.target }}
toolchain: stable
profile: minimal
override: true

- uses: actions-rs/cargo@v1
name: Build
with:
use-cross: ${{ matrix.cross }}
command: build
args: --release --locked --target ${{ matrix.target }}
target: ${{ matrix.target }}
args: "--locked --release"
strip: true

- name: Extract version
shell: bash
Expand Down
Loading