-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (65 loc) · 2.16 KB
/
compile.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
name: Bootstrap
on: [workflow_dispatch, push]
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/fix-project/wasm_toolchain_docker:latest
steps:
- name: "checkout repository"
uses: "actions/checkout@v4"
with:
submodules: 'recursive'
- name: install deps
run: sudo apt update && sudo apt-get install libboost-all-dev libgoogle-glog-dev software-properties-common -y
- name: install g++ 13
run: sudo add-apt-repository 'ppa:ubuntu-toolchain-r/test' && sudo apt update && sudo apt-get install gcc-13 g++-13 -y
- shell: bash
run: 'echo HOME=/home | sudo tee -a $GITHUB_ENV'
- name: cmake-build
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13
- name: compile-build
run: cmake --build build --parallel 8
- name: cmake-fix-build
run: cmake -S . -B fix-build -DBUILD_SYS_DRIVER:BOOL=OFF -DCMAKE_BUILD_TYPE=MinSizeRel
- name: compile-fix-build
run: cmake --build fix-build --parallel 8
- name: build
shell: bash
run: |
chmod +x build.sh
./build.sh 2
- name: serialize
shell: bash
run: |
chmod +x serialize.sh
./serialize.sh
- name: Upload bootstrap artifacts
uses: actions/upload-artifact@v2
with:
name: bootstrap
path: |
./.fix/
if-no-files-found: error
# release:
# if: startsWith(github.ref, 'refs/tags/')
# needs: ['build']
# runs-on: ubuntu-latest
# steps:
# - name: "checkout repository"
# uses: "actions/checkout@v2"
# with:
# submodules: 'recursive'
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: bootstrap
# - name: install zip
# run: sudo apt install zip -y
# - name: Create release asset
# run: zip -r bootstrap .fix
# - name: Show structure
# run: ls -R
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: bootstrap.zip