Use x86_64-elf-gcc under MacOS

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-11-29 10:34:42 -05:00
parent c8544ad6a4
commit 654a3165c0
5 changed files with 29 additions and 2 deletions
+8 -2
View File
@@ -18,13 +18,19 @@ jobs:
build:
name: Build
runs-on: macos-latest
# Set environment variables
#env:
# We globally set CC and CXX.
# CC: x86_64-elf-gcc
# CXX: x86_64-elf-g++
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install dependencies
run: |
brew install x86_64-elf-gcc git cmake nasm
brew install git cmake nasm
# x86_64-elf-binutils x86_64-elf-gcc
- name: Build
run: |
cmake -DCMAKE_C_COMPILER=x86_64-elf-gcc -DCMAKE_CXX_COMPILER=x86_64-elf-g++ -B build
cmake -B build
cmake --build build --parallel 2