-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.67 KB
/
gcc-build.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
name: GCC 13 Build
on:
push:
jobs:
build-project:
strategy:
matrix:
type: [ Debug, Release ]
os: [ ubuntu-latest ]
name: Build Project
runs-on: ${{ matrix.os }}
steps:
- name: Download aarch64-none-elf-gcc-13
run: wget -O /tmp/gcc.tar.xz "$GCC_URL"
env:
GCC_URL: https://developer.arm.com/-/media/Files/downloads/gnu/13.2.rel1/binrel/arm-gnu-toolchain-13.2.rel1-x86_64-aarch64-none-elf.tar.xz
- name: Create target directory
run: mkdir -p /tmp/aarch64-gcc
- name: Extract gcc archive
run: tar --strip-component=1 -xf /tmp/gcc.tar.xz -C /tmp/aarch64-gcc
- name: Setup variables
run: echo "/tmp/aarch64-gcc/bin" >> "$GITHUB_PATH"
- name: Checkout
uses: actions/[email protected]
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: qemu-system-arm mtools
version: 1.0
- name: Configure Project
run: |
cmake -B ${{github.workspace}}/build \
--toolchain=cmake/GCCToolchain.cmake \
-DCMAKE_BUILD_TYPE=${{matrix.type}} \
-DCMAKE_SYSROOT="/tmp/aarch64-gcc/aarch64-none-elf" \
-DGCC_PREFIX=aarch64-none-elf- \
-DGCC_SUFFIX=
- name: Build Project
run: make -j -C build VERBOSE=1
# - name: Test Project
# runs: ctest --test-dir build