forked from Simple-XX/SimpleKernel
-
Notifications
You must be signed in to change notification settings - Fork 9
78 lines (60 loc) · 1.92 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# This file is a part of Simple-XX/SimpleKernel (https://github.com/Simple-XX/SimpleKernel).
#
# build.yml for Simple-XX/SimpleKernel.
name: build
on:
- push
- pull_request
- release
env:
BUILD_TYPE: Release
jobs:
build_osx:
runs-on: macos-latest
steps:
- name: get code
uses: actions/checkout@v2
- name: setup brew
shell: bash
run: |
brew install x86_64-elf-binutils
brew install x86_64-elf-gcc
- name: make build dir
shell: bash
run: |
mkdir ${{github.workspace}}/build
- name: cmake
shell: bash
working-directory: ${{github.workspace}}/build
run: cmake -DTOOLCHAIN_PREFIX=x86_64-elf- -DCMAKE_C_COMPILER=x86_64-elf-gcc -DCMAKE_CXX_COMPILER=x86_64-elf-g++ -DCMAKE_OBJCOPY=x86_64-elf-objcpy -DPLATFORM=bochs -DARCH=i386 -DCMAKE_BUILD_TYPE=RELEASE -DHAVE_FLAG_SEARCH_PATHS_FIRST=0 ..
- name: make
shell: bash
working-directory: ${{github.workspace}}/build
run: make
# build_ubuntu:
# runs-on: ubuntu-latest
# steps:
# - name: Get code
# uses: actions/checkout@v2
# - name: Setup brew
# shell: bash
# run: |
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# brew install make
# brew install cmake
# brew install x86_64-elf-binutils
# brew install x86_64-elf-gcc
# - name: Make build dir
# shell: bash
# run: |
# mkdir ${{github.workspace}}/build
# - name: cmake
# shell: bash
# working-directory: ${{github.workspace}}/build
# run: cmake -DTOOLCHAIN_PREFIX=x86_64-elf- -DCMAKE_C_COMPILER=x86_64-elf-gcc -DCMAKE_OBJCOPY=x86_64-elf-objcpy -DPLATFORM=bochs -DARCH=x86_64 ..
# - name: make
# shell: bash
# working-directory: ${{github.workspace}}/build
# run: make
# build_win:
# runs-on: windows-latest