Skip to content

Commit 8645a71

Browse files
committed
Add compilation CI
1 parent a8b81a4 commit 8645a71

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/compilation.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
repository_dispatch:
7+
types: [run_build]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
container: orbisdev/orbisdev:latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Install dependencies
17+
run: |
18+
apk add clang make bash python2
19+
20+
- name: Compile Sample App
21+
run: |
22+
make clean all oelf eboot
23+
24+
- name: Get short SHA
25+
id: slug
26+
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
27+
28+
- name: Compress bin folder
29+
run: |
30+
tar -zcvf bin.tar.gz bin
31+
32+
- uses: actions/upload-artifact@v2
33+
with:
34+
name: bin-${{ steps.slug.outputs.sha8 }}-${{matrix.os}}
35+
path: bin.tar.gz

0 commit comments

Comments
 (0)