Skip to content

Commit 9298f0e

Browse files
committed
update ci
1 parent 7ee427a commit 9298f0e

File tree

1 file changed

+29
-28
lines changed

1 file changed

+29
-28
lines changed

.github/workflows/githubci.yml

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
repository_dispatch:
@@ -33,36 +34,36 @@ jobs:
3334
matrix:
3435
board: ${{ fromJSON(needs.set-matrix.outputs.matrix) }}
3536
steps:
36-
- name: Checkout Code
37-
uses: actions/checkout@v4
38-
with:
39-
fetch-depth: 0
40-
submodules: true
37+
- name: Checkout Code
38+
uses: actions/checkout@v4
39+
with:
40+
fetch-depth: 0
41+
submodules: true
4142

42-
- name: Install ARM GCC
43-
uses: carlosperate/arm-none-eabi-gcc-action@v1
44-
with:
45-
release: '12.3.Rel1'
43+
- name: Install ARM GCC
44+
uses: carlosperate/arm-none-eabi-gcc-action@v1
45+
with:
46+
release: 12.3.Rel1
4647

47-
- name: Install Tools
48-
run: |
49-
pip3 install adafruit-nrfutil uritemplate requests intelhex setuptools
48+
- name: Install Tools
49+
run: |
50+
pip3 install adafruit-nrfutil uritemplate requests intelhex setuptools
5051
51-
- name: Build
52-
run: |
53-
make BOARD=${{ matrix.board }} all
54-
make BOARD=${{ matrix.board }} copy-artifact
52+
- name: Build
53+
run: |
54+
make BOARD=${{ matrix.board }} all
55+
make BOARD=${{ matrix.board }} copy-artifact
5556
56-
- uses: actions/upload-artifact@v4
57-
with:
58-
name: ${{ matrix.board }}
59-
path: _bin/${{ matrix.board }}
57+
- uses: actions/upload-artifact@v4
58+
with:
59+
name: ${{ matrix.board }}
60+
path: _bin/${{ matrix.board }}
6061

61-
- name: Upload Release Asset
62-
uses: softprops/action-gh-release@v1
63-
if: ${{ github.event_name == 'release' }}
64-
with:
65-
files: |
66-
_bin/${{ matrix.board }}/${{ matrix.board }}_bootloader-*.zip
67-
_bin/${{ matrix.board }}/${{ matrix.board }}_bootloader-*.hex
68-
_bin/${{ matrix.board }}/update-${{ matrix.board }}_bootloader-*.uf2
62+
- name: Upload Release Asset
63+
uses: softprops/action-gh-release@v1
64+
if: ${{ github.event_name == 'release' }}
65+
with:
66+
files: |
67+
_bin/${{ matrix.board }}/${{ matrix.board }}_bootloader-*.zip
68+
_bin/${{ matrix.board }}/${{ matrix.board }}_bootloader-*.hex
69+
_bin/${{ matrix.board }}/update-${{ matrix.board }}_bootloader-*.uf2

0 commit comments

Comments
 (0)