-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.13 KB
/
c-cpp.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: GCC for ARM build
on:
push:
branches: [ main ]
tags:
- "v[0-9]*.*.*"
pull_request:
branches: [ main ]
jobs:
build:
env:
GCC_VERSION: '10-2020-q4'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Restore ARM GCC Cache
id: arm-gcc-cache
uses: actions/cache@v2
with:
path: arm-gcc
key: ${{ runner.os }}-arm-gcc-${{ env.GCC_VERSION }}
- name: Install ARM GCC
if: steps.arm-gcc-cache.outputs.cache-hit != 'true'
uses: fiam/arm-none-eabi-gcc@v1
with:
release: ${{ env.GCC_VERSION }}
directory: arm-gcc
- name: set PATH
run: echo "${{ github.workspace }}/arm-gcc/bin" >> $GITHUB_PATH
- name: make
run: make dist
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*
body_path: dist/info.md
- name: Save artifacts
uses: actions/upload-artifact@v3
with:
name: dist-files
path: dist