forked from hardwario/gcc-arm-embedded-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.57 KB
/
docker_image.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
name: Docker Image CI
on: [push]
jobs:
linux:
name: GCC ARM Toolchain ${{ matrix.compiler.name }} - ${{ matrix.build }}
runs-on: ubuntu-latest
strategy:
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix entry fails.
matrix:
compiler: [{name: '6-2017-q2-update'},
{name: '7-2017-q4-major'},
{name: '7-2018-q2-update'},
{name: '8-2018-q4-major'},
{name: '8-2019-q3-update'},
{name: '9-2019-q4-major'},
{name: '9-2020-q2-update'},
{name: '10.3-2021.07'},
{name: '10.3-2021.10'},
{name: '11.3.rel1'},
{name: '12.2.rel1'},
{name: '12.3.rel1'},
{name: '13.2.rel1'},
{name: '13.3.rel1'}]
build: ['debug', 'release']
steps:
- uses: actions/checkout@v4
- name: Build ARM GCC Toolchain ${{ matrix.compiler.name }} Docker
run: docker build . --file ${{ matrix.compiler.name }}/Dockerfile -t gcc-arm-embedded:latest -t gcc-arm-embedded:${{ matrix.compiler.name }}
- name: Configure ${{ matrix.build }} example with GCC Toolchain ${{ matrix.compiler.name }} Docker
run: docker run -v ${PWD}/example:/builds gcc-arm-embedded cmake --preset ${{ matrix.build }}
- name: Build ${{ matrix.build }} example with GCC Toolchain ${{ matrix.compiler.name }} Docker
run: docker run -v ${PWD}/example:/builds gcc-arm-embedded cmake --build --preset ${{ matrix.build }}