-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (44 loc) · 1.84 KB
/
ci.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
name: Build
# Build on every branch push, tag push, and pull request change:
on: [push, pull_request_target]
jobs:
build_repo:
name: Build repo (${{ matrix.version }})
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
version: [us, fr, eu, proto]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }}
- name: Install package requirements
run: sudo apt-get install -yq make git build-essential binutils-mips-linux-gnu cpp-mips-linux-gnu gcc-mips-linux-gnu python3 python3-pip
- name: Upgrade pip
run: pip3 install --upgrade pip
- name: Install Splat
run: pip3 install -U splat64[mips]
- name: Install Python Dependencies
run: pip3 install -r requirements.txt
- name: Get extra dependencies
uses: actions/checkout@v3
with:
repository: ${{ secrets.SECRETREPO }}
token: ${{ secrets.SECRETTOKEN }}
path: deps_repo
- name: Get the dependency
run: cp deps_repo/dukezh/* .
- name: Setup
run: make setup -j $(nproc) VERSION=${{ matrix.version }}
- name: Build Duke Nukem Zero Hour (MATCHING)
run: make -j $(nproc) VERSION=${{ matrix.version }}
- name: Build Duke Nukem Zero Hour (NON_MATCHING)
run: make -j $(nproc) VERSION=${{ matrix.version }} NON_MATCHING=1 BUILD_DIR=build_non_matching/${{ matrix.version }}
- name: Build Duke Nukem Zero Hour (MODERN GCC)
run: make -j $(nproc) VERSION=${{ matrix.version }} MODERN=1 BUILD_DIR=build_modern/${{ matrix.version }}
- name: Upload frogress
if: github.ref == 'refs/heads/master' && matrix.version == 'us'
run: python3 tools/scripts/frogress.py ${{ matrix.version }} --api_key ${{ secrets.PROGRESS_API_KEY }}