88jobs :
99 build :
1010 runs-on : ubuntu-latest
11- continue-on-error : ${{ matrix.experimental || false }}
12- strategy :
13- matrix :
14- # All code should be running on stable now
15- rust : [nightly, stable]
16- include :
17- # Nightly is only for reference and allowed to fail
18- - rust : nightly
19- experimental : true
2011 steps :
2112 - name : Checkout Code
2213 uses : actions/checkout@v3
2314 with :
2415 submodules : true
16+ fetch-depth : 0
2517
2618 - name : Install Rust
2719 uses : actions-rs/toolchain@v1
2820 with :
2921 profile : minimal
30- toolchain : ${{ matrix.rust }}
22+ toolchain : stable
3123 override : true
3224 target : thumbv6m-none-eabi
3325
3426 - name : Build Code
35- run : cargo build --release --verbose
36-
37- - name : Get Branch Name
38- if : github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
39- id : branch_name
4027 run : |
41- echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
42-
43- - name : Create Release
44- if : github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
45- id : create_release
46- uses : actions/create-release@v1
47- env :
48- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49- with :
50- tag_name : ${{ github.ref }}
51- release_name : Release ${{ steps.branch_name.outputs.SOURCE_TAG }}
52- draft : false
53- prerelease : false
28+ cargo build --release --verbose
5429
5530 - name : Upload files to Release
5631 if : github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
5732 uses : softprops/action-gh-release@v1
5833 with :
5934 files : |
60- target/thumbv6m-none-eabi/release/neotron-pico
35+ ./ target/thumbv6m-none-eabi/release/neotron-pico-bios
6136 env :
6237 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments