Rapport Done. (#73) #224
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |