Use x86_64-elf-gcc under MacOS

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-11-29 10:29:11 -05:00
parent 61e6954265
commit c8544ad6a4
+1 -6
View File
@@ -18,11 +18,6 @@ jobs:
build:
name: Build
runs-on: macos-latest
# Set environment variables
env:
# We globally set CC and CXX.
CC: /usr/local/bin/x86_64-elf-gcc
CXX: /usr/local/bin/x86_64-elf-g++
steps:
- name: Clone repository
uses: actions/checkout@v3
@@ -31,5 +26,5 @@ jobs:
brew install x86_64-elf-gcc git cmake nasm
- name: Build
run: |
cmake -B build
cmake -DCMAKE_C_COMPILER=x86_64-elf-gcc -DCMAKE_CXX_COMPILER=x86_64-elf-g++ -B build
cmake --build build --parallel 2