aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alex Martens <alex@thinglab.org> 2023-10-29 15:05:51 -0700
committerGravatar Alex Martens <alex@thinglab.org> 2023-10-29 15:05:51 -0700
commitfa7031a430a570c643ae12cbd3f527c8d48213f5 (patch)
tree3103776c54ce24554e6b63b7ea543bdda604d858
parent7f6ff8fb72eb333344c02147c06e7dc6801870c3 (diff)
downloadcortex-m-fa7031a430a570c643ae12cbd3f527c8d48213f5.tar.gz
cortex-m-fa7031a430a570c643ae12cbd3f527c8d48213f5.tar.zst
cortex-m-fa7031a430a570c643ae12cbd3f527c8d48213f5.zip
CI: actions-rs/toolchain -> dtolnay/rust-toolchain
-rw-r--r--.github/workflows/ci.yml4
-rw-r--r--.github/workflows/clippy.yml5
-rw-r--r--.github/workflows/cron.yml12
-rw-r--r--.github/workflows/on-target.yml14
-rw-r--r--.github/workflows/rt-ci.yml10
-rw-r--r--.github/workflows/rustfmt.yml5
6 files changed, 11 insertions, 39 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b396545..984adac 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -25,11 +25,9 @@ jobs:
experimental: true
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- override: true
- name: Run tests
run: cargo test --all --exclude cortex-m-rt --exclude testsuite --features cortex-m/critical-section-single-core
diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml
index 03073ce..4b611bf 100644
--- a/.github/workflows/clippy.yml
+++ b/.github/workflows/clippy.yml
@@ -16,11 +16,8 @@ jobs:
ref: refs/pull/${{ github.event.number }}/head
- uses: actions/checkout@v4
if: github.event_name != 'pull_request_target'
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
components: clippy
- uses: actions-rs/clippy-check@v1
with:
diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml
index e35b48f..a09e2a3 100644
--- a/.github/workflows/cron.yml
+++ b/.github/workflows/cron.yml
@@ -10,11 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
+ - uses: dtolnay/rust-toolchain@stable
- name: Run tests
run: cargo test --all --exclude cortex-m-rt --exclude testsuite
- uses: imjohnbo/issue-bot@v3
@@ -37,11 +33,7 @@ jobs:
working-directory: cortex-m-rt
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
+ - uses: dtolnay/rust-toolchain@stable
- name: Install all Rust targets for stable
run: rustup target install --toolchain=stable thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
- name: Install qemu and gcc
diff --git a/.github/workflows/on-target.yml b/.github/workflows/on-target.yml
index 4276269..beb0e7d 100644
--- a/.github/workflows/on-target.yml
+++ b/.github/workflows/on-target.yml
@@ -15,12 +15,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
- target: thumbv7m-none-eabi
+ targets: thumbv7m-none-eabi
- name: Build testsuite
env:
RUSTFLAGS: -C link-arg=-Tlink.x -D warnings
@@ -40,12 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
- target: thumbv6m-none-eabi
+ targets: thumbv6m-none-eabi
- name: Modify linkerfile
run: |
sed -i 's/FLASH : ORIGIN = 0x00000000, LENGTH = 256K/FLASH : ORIGIN = 0x8000000, LENGTH = 128K/g' memory.x
diff --git a/.github/workflows/rt-ci.yml b/.github/workflows/rt-ci.yml
index 88ce85e..318c23a 100644
--- a/.github/workflows/rt-ci.yml
+++ b/.github/workflows/rt-ci.yml
@@ -24,11 +24,9 @@ jobs:
working-directory: cortex-m-rt
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@master
with:
- profile: minimal
toolchain: ${{ matrix.rust }}
- override: true
- name: Install all Rust targets for ${{ matrix.rust }}
run: rustup target install --toolchain=${{ matrix.rust }} thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
- name: Install qemu and gcc
@@ -63,11 +61,7 @@ jobs:
working-directory: cortex-m-rt
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
- with:
- profile: minimal
- toolchain: stable
- override: true
+ - uses: dtolnay/rust-toolchain@stable
- name: Install all Rust targets
run: rustup target install thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf thumbv8m.base-none-eabi thumbv8m.main-none-eabi thumbv8m.main-none-eabihf
- name: Build examples for thumbv6m-none-eabi
diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml
index 08b68fe..3630a96 100644
--- a/.github/workflows/rustfmt.yml
+++ b/.github/workflows/rustfmt.yml
@@ -13,11 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- - uses: actions-rs/toolchain@v1
+ - uses: dtolnay/rust-toolchain@stable
with:
- profile: minimal
- toolchain: stable
- override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with: