forked from microsoft/uf2-samdx1
-
Notifications
You must be signed in to change notification settings - Fork 188
38 lines (35 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build CI
on:
push:
pull_request:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Set up repository
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: "blob:none"
show-progress: false
submodules: false
- name: Set up compiler
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
# When changing this update what Windows grabs too!
release: '13.2.Rel1'
- name: Extract version identifier
run: |
echo >> $GITHUB_ENV "UF2_VERSION_BASE=`git describe --dirty --always --tags`"
- name: Build
run: make submodules && make -j$(nproc) all-boards && mv build/drop build/uf2-samdx1-$UF2_VERSION_BASE
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: build/uf2-samdx1-${{ env.UF2_VERSION_BASE }}/*
name: uf2-samdx1-${{ env.UF2_VERSION_BASE }}