-
Notifications
You must be signed in to change notification settings - Fork 5
71 lines (69 loc) · 2.4 KB
/
buildtoolchain.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Examples
on: [push, pull_request]
jobs:
buildlinux:
strategy:
fail-fast: false
matrix:
architecture: [avr, arm-none-eabi, m68k-elf]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install dependencies
run: |
sudo apt-get install wget bzip2 xz-utils unzip git make tar flex bison diffutils texinfo gcc g++ libexpat-dev
shell: bash
- name: Build toolchain
run: |
bash buildtoolchain.sh linux ${{ matrix.architecture }}
- name: Build example with toolchain
run: |
bash runtests.sh ${{ matrix.architecture }}
- name: Build platformio examples with toolchain
run: |
python -m pip install --upgrade pip
pip install -U https://github.com/platformio/platformio/archive/develop.zip
bash runtests_pio.sh ${{ matrix.architecture }}
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
path: toolchain-${{ matrix.architecture }}-linux-gcc-13.2.0.tar.gz
retention-days: 5
buildwindows:
strategy:
fail-fast: false
matrix:
architecture: [avr, arm-none-eabi, m68k-elf]
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install prepare msys
uses: msys2/[email protected]
with:
msystem: MINGW64
install: git mingw-w64-x86_64-toolchain make wget bzip2 tar flex bison unzip diffutils texinfo autoconf patch libexpat-devel
update: true
- name: Build toolchain
run: |
bash buildtoolchain.sh windows ${{ matrix.architecture }}
- name: Build examples with toolchain
run: |
bash runtests.sh ${{ matrix.architecture }}
- name: Build platformio examples with toolchain
run: |
pacman -S --needed --noconfirm python3-pip
pip3 install --upgrade pip
pip3 install -U https://github.com/platformio/platformio/archive/develop.zip
bash runtests_pio.sh ${{ matrix.architecture }}
- name: 'Upload Artifact'
uses: actions/upload-artifact@v2
with:
path: toolchain-${{ matrix.architecture }}-windows-gcc-13.2.0.tar.gz
retention-days: 5