Extend github worflow.

This commit is contained in:
Enrico Fraccaroli (Galfurian)
2023-01-26 14:34:42 -05:00
parent 32192829ff
commit 1afad50078
3 changed files with 97 additions and 94 deletions
+33 -54
View File
@@ -1,57 +1,36 @@
name: MacOS
on:
push:
branches-ignore:
- "releases/**"
paths-ignore:
- "**.md"
- ".gitignore"
- "ubuntu.yml"
pull_request:
paths-ignore:
- "**.md"
- ".gitignore"
- "ubuntu.yml"
push:
branches-ignore:
- "releases/**"
paths-ignore:
- "**.md"
- ".gitignore"
- "ubuntu.yml"
- "windows.yml"
pull_request:
paths-ignore:
- "**.md"
- ".gitignore"
- "ubuntu.yml"
- "windows.yml"
jobs:
doxygen:
name: Doxygen
runs-on: macos-latest
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 update
brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs doxygen
- name: Generate documentation
run: |
cmake -B build -D DOXYGEN_WARN_AS_ERROR=NO
cmake --build build --target mentos_documentation
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 update
brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs
- name: Build
run: |
cmake -B build
cmake --build build --parallel 2
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 update
brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs
- name: Build
run: |
cmake -B build
cmake --build build --parallel 2