diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b26a792..78ab721 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: stable profile: minimal components: rust-src - name: Build docs @@ -30,7 +30,7 @@ jobs: cargo doc --target ${target} mv target/${target}/doc doc/${target} done - for target in x86_64-unknown-linux-gnu + for target in x86_64-unknown-linux-gnu do rustup target add ${target} cargo doc --target ${target} @@ -38,7 +38,7 @@ jobs: mv target/${target}/doc doc/${target} done - name: Deploy to Github Pages - uses: JamesIves/github-pages-deploy-action@releases/v3 + uses: JamesIves/github-pages-deploy-action@releases/v4 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3d4021..4c92ca1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,18 +2,14 @@ name: CI on: [push, pull_request] +env: + rust-toolchain: stable + jobs: check: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: rm rust-toolchain - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly-2022-01-20 - override: true - components: rustfmt, clippy + - uses: actions/checkout@v4 - name: Check code format uses: actions-rs/cargo@v1 with: @@ -21,7 +17,7 @@ jobs: args: --all -- --check build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: target: [ @@ -34,13 +30,7 @@ jobs: mipsel-unknown-linux-gnu, ] steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly-2022-01-20 - target: ${{ matrix.target }} - components: clippy + - uses: actions/checkout@v4 - name: Build uses: actions-rs/cargo@v1 with: @@ -58,14 +48,9 @@ jobs: args: --target ${{ matrix.target }} build-x86_64-none: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly-2022-01-20 - components: rust-src + - uses: actions/checkout@v4 - name: Build uses: actions-rs/cargo@v1 with: @@ -81,15 +66,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-20.04, macos-latest] + os: [ubuntu-latest, macos-latest] steps: - - uses: actions/checkout@v2 - - run: rm rust-toolchain - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly-2022-01-20 - override: true + - uses: actions/checkout@v4 - name: Test uses: actions-rs/cargo@v1 with: @@ -97,16 +76,9 @@ jobs: args: --all-features test-aarch64: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: rm rust-toolchain - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly-2022-01-20 - target: aarch64-unknown-linux-gnu - override: true + - uses: actions/checkout@v4 - uses: actions-rs/cargo@v1 with: use-cross: true diff --git a/rust-toolchain b/rust-toolchain index 12ae469..2bf5ad0 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2022-01-20 \ No newline at end of file +stable diff --git a/src/lib.rs b/src/lib.rs index 13389fe..98f09fa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![no_std] -#![feature(linkage)] #![deny(warnings)] #![cfg_attr(target_arch = "mips", feature(asm_experimental_arch))]