-
Notifications
You must be signed in to change notification settings - Fork 9
50 lines (41 loc) · 1.49 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
name: Compile
on:
pull_request:
branches: main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
sm-version: [ '1.11.x', '1.12.x']
steps:
- name: Install Checkout
uses: actions/checkout@v1
- name: Install Setup SP ${{ matrix.sm-version }}
uses: rumblefrog/setup-sp@master
with:
version: ${{ matrix.sm-version }}
- name: Get GitHub Env
run: |
echo "PLUGIN_VERSION_REVISION<<EOF" >> $GITHUB_ENV
git rev-list --count HEAD >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Install Misc
run: bash scripts/setup.sh
working-directory: ./
- name: Minimum Compile ${{ matrix.sm-version }}
run: |
spcomp -E -O2 -v2 -i "include" freak_fortress_2.sp
spcomp -E -O2 -v2 -i "include" ff2r_default_abilities.sp
spcomp -E -O2 -v2 -i "include" ff2r_menu_abilities.sp
working-directory: ${{ env.SCRIPTS_PATH }}
- name: Install Optional Includes
run: bash scripts/optional.sh
working-directory: ./
- name: Full Compile ${{ matrix.sm-version }}
run: |
spcomp -E -O2 -v2 -i "include" freak_fortress_2.sp
spcomp -E -O2 -v2 -i "include" ff2r_default_abilities.sp
spcomp -E -O2 -v2 -i "include" ff2r_epic_abilities.sp
spcomp -E -O2 -v2 -i "include" ff2r_menu_abilities.sp
working-directory: ${{ env.SCRIPTS_PATH }}