File tree Expand file tree Collapse file tree 3 files changed +49
-45
lines changed Expand file tree Collapse file tree 3 files changed +49
-45
lines changed Original file line number Diff line number Diff line change 1
1
name : MacOS
2
2
on :
3
- push :
4
- branches-ignore :
5
- - " releases/**"
6
- paths-ignore :
7
- - " **.md"
8
- - " .gitignore"
9
- pull_request :
10
- paths-ignore :
11
- - " **.md"
12
- - " .gitignore"
3
+ push :
4
+ branches-ignore :
5
+ - " releases/**"
6
+ paths-ignore :
7
+ - " **.md"
8
+ - " .gitignore"
9
+ - " ubuntu.yml"
10
+ pull_request :
11
+ paths-ignore :
12
+ - " **.md"
13
+ - " .gitignore"
14
+ - " ubuntu.yml"
13
15
jobs :
14
- doxygen :
15
- name : Doxygen
16
- runs-on : macos-latest
17
- steps :
18
- - name : Clone repository
19
- uses : actions/checkout@v3
16
+ doxygen :
17
+ name : Doxygen
18
+ runs-on : macos-latest
19
+ steps :
20
+ - name : Clone repository
21
+ uses : actions/checkout@v3
20
22
21
- - name : Install dependencies
22
- run : |
23
- brew update
24
- brew install doxygen
23
+ - name : Install dependencies
24
+ run : |
25
+ brew update
26
+ brew install x86_64-elf-binutils x86_64-elf-gcc git cmake qemu nasm e2fsprogs doxygen
25
27
26
- - name : Generate documentation
27
- run : |
28
- cmake -B build -D DOXYGEN_WARN_AS_ERROR=NO
29
- cmake --build build --target mentos_documentation
28
+ - name : Generate documentation
29
+ run : |
30
+ cmake -B build -D DOXYGEN_WARN_AS_ERROR=NO
31
+ cmake --build build --target mentos_documentation
30
32
31
- build :
32
- name : Build
33
- runs-on : macos-latest
34
- steps :
35
- - name : Clone repository
36
- uses : actions/checkout@v3
33
+ build :
34
+ name : Build
35
+ runs-on : macos-latest
36
+ steps :
37
+ - name : Clone repository
38
+ uses : actions/checkout@v3
37
39
38
- - name : Install dependencies
39
- run : |
40
- brew update
41
- brew install i386 -elf-binutils i386 -elf-gcc git cmake qemu nasm e2fsprogs
42
-
43
- - name : Build
44
- run : |
45
- cmake -B build
46
- cmake --build build --parallel 2
40
+ - name : Install dependencies
41
+ run : |
42
+ brew update
43
+ brew install x86_64 -elf-binutils x86_64 -elf-gcc git cmake qemu nasm e2fsprogs
44
+
45
+ - name : Build
46
+ run : |
47
+ cmake -B build
48
+ cmake --build build --parallel 2
Original file line number Diff line number Diff line change 6
6
paths-ignore :
7
7
- " **.md"
8
8
- " .gitignore"
9
+ - " macos.yml"
9
10
pull_request :
10
11
paths-ignore :
11
12
- " **.md"
12
13
- " .gitignore"
14
+ - " macos.yml"
13
15
jobs :
14
16
doxygen :
15
17
name : Doxygen
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ if((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin") OR APPLE)
31
31
# Set the Apple MacOSx compilers.
32
32
if (CMAKE_VERSION VERSION_LESS "3.6.0" )
33
33
include (CMakeForceCompiler)
34
- cmake_force_c_compiler(i386 -elf-gcc Clang)
35
- cmake_force_cxx_compiler(i386 -elf-g++ Clang)
34
+ cmake_force_c_compiler(x86_64 -elf-gcc Clang)
35
+ cmake_force_cxx_compiler(x86_64 -elf-g++ Clang)
36
36
else ()
37
- set (CMAKE_C_COMPILER i386 -elf-gcc)
38
- set (CMAKE_CXX_COMPILER i386 -elf-g++)
39
- set (CMAKE_AR i386 -elf-ar)
37
+ set (CMAKE_C_COMPILER x86_64 -elf-gcc)
38
+ set (CMAKE_CXX_COMPILER x86_64 -elf-g++)
39
+ set (CMAKE_AR x86_64 -elf-ar)
40
40
endif ()
41
41
# Speicfy the linker.
42
- set (CMAKE_LINKER i386 -elf-ld)
42
+ set (CMAKE_LINKER x86_64 -elf-ld)
43
43
# Specify the linker flags.
44
44
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostdlib" )
45
45
elseif ((${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" ) OR WIN32 )
You can’t perform that action at this time.
0 commit comments