|
@@ -0,0 +1,53 @@
|
|
1
|
+name: Web
|
|
2
|
+
|
|
3
|
+# only build single instance of docs for latest main branch
|
|
4
|
+on:
|
|
5
|
+ push:
|
|
6
|
+ branches:
|
|
7
|
+ - master
|
|
8
|
+
|
|
9
|
+jobs:
|
|
10
|
+ deploy:
|
|
11
|
+ runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+ permissions:
|
|
14
|
+ contents: write
|
|
15
|
+ pages: write
|
|
16
|
+ id-token: write
|
|
17
|
+
|
|
18
|
+ steps:
|
|
19
|
+ - name: Install dependencies
|
|
20
|
+ working-directory: ${{github.workspace}}
|
|
21
|
+ shell: bash
|
|
22
|
+ run: |
|
|
23
|
+ wget https://github.com/gbdk-2020/gbdk-2020/releases/download/4.4.0/gbdk-linux64.tar.gz
|
|
24
|
+ tar -xzf gbdk-linux64.tar.gz
|
|
25
|
+
|
|
26
|
+ - name: Checkout repo
|
|
27
|
+ uses: actions/checkout@v4
|
|
28
|
+ with:
|
|
29
|
+ path: repo
|
|
30
|
+ fetch-depth: 0
|
|
31
|
+
|
|
32
|
+ - name: Get core count
|
|
33
|
+ id: core_count
|
|
34
|
+ run : cat /proc/cpuinfo | grep processor | wc -l
|
|
35
|
+
|
|
36
|
+ - name: Build
|
|
37
|
+ working-directory: ${{github.workspace}}/repo
|
|
38
|
+ shell: bash
|
|
39
|
+ run: |
|
|
40
|
+ make GBDK_HOME=${{github.workspace}}/gbdk GBDK_RELEASE=1 clean all -j $(nproc)
|
|
41
|
+ cp duality.gb docs
|
|
42
|
+
|
|
43
|
+ - name: Setup Pages
|
|
44
|
+ uses: actions/configure-pages@v2
|
|
45
|
+
|
|
46
|
+ - name: Upload artifact
|
|
47
|
+ uses: actions/upload-pages-artifact@v3
|
|
48
|
+ with:
|
|
49
|
+ path: 'docs'
|
|
50
|
+
|
|
51
|
+ - name: Deploy to GitHub Pages
|
|
52
|
+ id: deployment
|
|
53
|
+ uses: actions/deploy-pages@v4
|