aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel Egger <daniel@eggers-club.de> 2020-07-21 01:26:39 +0200
committerGravatar Daniel Egger <daniel@eggers-club.de> 2020-07-21 01:39:46 +0200
commit282d64bf688c7cb76efe5394a7cf56275b2a919c (patch)
tree2af533eaf37211ec50aacdecb897ebaab605c1a5
parentad47e7ff107ed0a9ef203eba8c86e2b0d8d4d2ed (diff)
downloadcortex-m-282d64bf688c7cb76efe5394a7cf56275b2a919c.tar.gz
cortex-m-282d64bf688c7cb76efe5394a7cf56275b2a919c.tar.zst
cortex-m-282d64bf688c7cb76efe5394a7cf56275b2a919c.zip
Add remainder of CI scripts
Signed-off-by: Daniel Egger <daniel@eggers-club.de>
Diffstat (limited to '')
-rw-r--r--cortex-m-rt/.github/workflows/ci.yml34
-rw-r--r--cortex-m-rt/.github/workflows/clippy.yml5
-rw-r--r--cortex-m-rt/.github/workflows/rustfmt.yml23
3 files changed, 61 insertions, 1 deletions
diff --git a/cortex-m-rt/.github/workflows/ci.yml b/cortex-m-rt/.github/workflows/ci.yml
new file mode 100644
index 0000000..f1a92cb
--- /dev/null
+++ b/cortex-m-rt/.github/workflows/ci.yml
@@ -0,0 +1,34 @@
+on:
+ push:
+ branches: [ staging, trying, master ]
+ pull_request:
+
+name: Continuous integration
+
+jobs:
+ ci-linux:
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ # All generated code should be running on stable now
+ rust: [nightly, stable, 1.39.0]
+
+ # The default target we're compiling on and for
+ TARGET: [thumbv6m-none-eabi, thumbv7m-none-eabi, thumbv7em-none-eabi, thumbv7em-none-eabihf, thumbv8m.main-none-eabi]
+
+ include:
+ # Nightly is only for reference and allowed to fail
+ - rust: nightly
+ experimental: true
+
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: ${{ matrix.rust }}
+ target: ${{ matrix.TARGET }}
+ override: true
+ components: rustfmt
+ - name: Run CI script for ${{ matrix.TARGET }} under ${{ matrix.rust }}
+ run: TARGET=${{ matrix.TARGET }} bash ci/script.sh
diff --git a/cortex-m-rt/.github/workflows/clippy.yml b/cortex-m-rt/.github/workflows/clippy.yml
index 1818faf..adc3a6e 100644
--- a/cortex-m-rt/.github/workflows/clippy.yml
+++ b/cortex-m-rt/.github/workflows/clippy.yml
@@ -1,4 +1,7 @@
-on: [push, pull_request]
+on:
+ push:
+ branches: [ staging, trying, master ]
+ pull_request:
name: Clippy check
jobs:
diff --git a/cortex-m-rt/.github/workflows/rustfmt.yml b/cortex-m-rt/.github/workflows/rustfmt.yml
new file mode 100644
index 0000000..9a55c00
--- /dev/null
+++ b/cortex-m-rt/.github/workflows/rustfmt.yml
@@ -0,0 +1,23 @@
+on:
+ push:
+ branches: [ staging, trying, master ]
+ pull_request:
+
+name: Code formatting check
+
+jobs:
+ fmt:
+ name: Rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ components: rustfmt
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --all -- --check