summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-12-04 21:08:47 +0700
committerhathach <[email protected]>2022-12-04 21:08:47 +0700
commitb37870c964e9fafe8cdd4ff6e48fa072ca59858b (patch)
tree8012783dae62eac0726790798098c84216501c8b /.github/workflows
parentb9314bddc5ca53c277a4472d7d162067c5e28604 (diff)
test exclude-file.txt, add action concurrency
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_aarch64.yml4
-rw-r--r--.github/workflows/build_arm.yml21
-rw-r--r--.github/workflows/build_esp.yml4
-rw-r--r--.github/workflows/build_msp430.yml4
-rw-r--r--.github/workflows/build_renesas.yml4
-rw-r--r--.github/workflows/build_riscv.yml4
-rw-r--r--.github/workflows/pre-commit.yml16
7 files changed, 34 insertions, 23 deletions
diff --git a/.github/workflows/build_aarch64.yml b/.github/workflows/build_aarch64.yml
index af26f33f2..49973fe41 100644
--- a/.github/workflows/build_aarch64.yml
+++ b/.github/workflows/build_aarch64.yml
@@ -7,6 +7,10 @@ on:
types:
- created
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
# ---------------------------------------
# Build AARCH64 family
diff --git a/.github/workflows/build_arm.yml b/.github/workflows/build_arm.yml
index 0dab46d0f..56200465b 100644
--- a/.github/workflows/build_arm.yml
+++ b/.github/workflows/build_arm.yml
@@ -13,27 +13,6 @@ concurrency:
jobs:
# ---------------------------------------
- # Unit testing with Ceedling
- # ---------------------------------------
- unit-test:
- runs-on: ubuntu-latest
- steps:
- - name: Setup Ruby
- uses: ruby/setup-ruby@v1
- with:
- ruby-version: '2.7'
-
- - name: Checkout TinyUSB
- uses: actions/checkout@v3
-
- - name: Unit Tests
- run: |
- # Install Ceedling
- gem install ceedling
- cd test
- ceedling test:all
-
- # ---------------------------------------
# Build ARM family
# ---------------------------------------
build-arm:
diff --git a/.github/workflows/build_esp.yml b/.github/workflows/build_esp.yml
index 51d91de49..d775e50b6 100644
--- a/.github/workflows/build_esp.yml
+++ b/.github/workflows/build_esp.yml
@@ -7,6 +7,10 @@ on:
types:
- created
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build-esp:
runs-on: ubuntu-latest
diff --git a/.github/workflows/build_msp430.yml b/.github/workflows/build_msp430.yml
index 1ef25a6a0..d28341e5b 100644
--- a/.github/workflows/build_msp430.yml
+++ b/.github/workflows/build_msp430.yml
@@ -7,6 +7,10 @@ on:
types:
- created
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build-msp430:
runs-on: ubuntu-latest
diff --git a/.github/workflows/build_renesas.yml b/.github/workflows/build_renesas.yml
index 2e272c832..6cb873dd8 100644
--- a/.github/workflows/build_renesas.yml
+++ b/.github/workflows/build_renesas.yml
@@ -7,6 +7,10 @@ on:
types:
- created
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build-rx:
runs-on: ubuntu-latest
diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml
index 61c1c60c5..18e952d92 100644
--- a/.github/workflows/build_riscv.yml
+++ b/.github/workflows/build_riscv.yml
@@ -7,6 +7,10 @@ on:
types:
- created
+concurrency:
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
build-riscv:
runs-on: ubuntu-latest
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 7baf66e72..2463903f8 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -17,8 +17,20 @@ jobs:
with:
python-version: '3.x'
+ - name: Setup Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: '2.7'
+
- name: Checkout TinyUSB
uses: actions/checkout@v3
- - name: Check Code Spelling
- uses: codespell-project/actions-codespell@master \ No newline at end of file
+ - name: Run codespell
+ uses: codespell-project/actions-codespell@master
+
+ - name: Run Unit Tests
+ run: |
+ # Install Ceedling
+ gem install ceedling
+ cd test
+ ceedling test:all \ No newline at end of file