forked from lukaszdk/ps2doom
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.15 KB
/
compilation.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: CI-compile
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add build-base git zip gawk
# i need to change this library
- name: Git clone sjpcm lib
run: |
git clone https://github.com/ps2homebrew/isjpcm.git && cd isjpcm
make install
- name: Git clone cosMix
run: |
git clone https://github.com/Doom-modding-and-etc/cosmix.git && cd cosmix
make all
- name: change user permission for me
run: |
git config --global --add safe.directory /__w/ps2doom/ps2doom
- name: git checkout
uses: actions/checkout@v3
- run: |
git fetch --prune --unshallow
- name: Compile ps2doom
run: make all
- name: Get short SHA
id: slug
run: echo "name=sha8 >> ::(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: ps2doom-${{ steps.slug.outputs.sha8 }}
path: bin