forked from mgba-emu/mgba
-
Notifications
You must be signed in to change notification settings - Fork 77
36 lines (30 loc) · 959 Bytes
/
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
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-ps2:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apk add build-base
- name: Get Information Variables
id: core
run: |
echo "::set-output name=info::$(echo mgba)"
echo "::set-output name=platform::$(echo ps2)"
echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Compile project
run: |
make platform=${{ steps.core.outputs.platform }} clean all
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v2
with:
name: ${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}-${{ steps.core.outputs.sha8 }}
path: ${{ steps.core.outputs.info }}_libretro_${{ steps.core.outputs.platform }}.a