-
Notifications
You must be signed in to change notification settings - Fork 146
72 lines (58 loc) · 2.94 KB
/
main.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
72
name: Build and test
on: [pull_request, push]
jobs:
linux-build:
name: Build and test on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-x86_64-linux-12.2.0-1.tar.gz
tar xf gnat-x86_64-linux-12.2.0-1.tar.gz
echo "${PWD}/gnat-x86_64-linux-12.2.0-1/bin" >> $GITHUB_PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-arm-elf-linux64-12.2.0-1.tar.gz
tar xf gnat-arm-elf-linux64-12.2.0-1.tar.gz
echo "${PWD}/gnat-arm-elf-linux64-12.2.0-1/bin" >> $GITHUB_PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-riscv64-elf-linux64-12.2.0-1.tar.gz
tar xf gnat-riscv64-elf-linux64-12.2.0-1.tar.gz
echo "${PWD}/gnat-riscv64-elf-linux64-12.2.0-1/bin" >> $GITHUB_PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gprbuild-22.0.0-1/gprbuild-x86_64-linux-22.0.0-1.tar.gz
tar xf gprbuild-x86_64-linux-22.0.0-1.tar.gz
echo "${PWD}/gprbuild-x86_64-linux-22.0.0-1/bin" >> $GITHUB_PATH
- name: Install Python 3.x (required for the testsuite)
uses: actions/setup-python@v2
with:
python-version: '3.11'
- run: python3 $PWD/scripts/build_all_examples.py
- run: python3 $PWD/testsuite/run.py
- run: python3 $PWD/scripts/check_readme.py
win-build:
name: Build and test on Windows
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
install: >-
base-devel
wget
mingw-w64-x86_64-python
- run: |
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-x86_64-windows64-12.2.0-1.tar.gz
tar xf gnat-x86_64-windows64-12.2.0-1.tar.gz
export PATH=${PWD}/gnat-x86_64-windows64-12.2.0-1/bin:$PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-arm-elf-windows64-12.2.0-1.tar.gz
tar xf gnat-arm-elf-windows64-12.2.0-1.tar.gz
export PATH=${PWD}/gnat-arm-elf-windows64-12.2.0-1/bin:$PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-12.2.0-1/gnat-riscv64-elf-windows64-12.2.0-1.tar.gz
tar xf gnat-riscv64-elf-windows64-12.2.0-1.tar.gz
export PATH=${PWD}/gnat-riscv64-elf-windows64-12.2.0-1/bin:$PATH
wget -q https://github.com/alire-project/GNAT-FSF-builds/releases/download/gprbuild-22.0.0-1/gprbuild-x86_64-windows64-22.0.0-1.tar.gz
tar xf gprbuild-x86_64-windows64-22.0.0-1.tar.gz
export PATH=${PWD}/gprbuild-x86_64-windows64-22.0.0-1/bin:$PATH
python $PWD/scripts/build_all_examples.py
python $PWD/testsuite/run.py