-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (47 loc) · 1.48 KB
/
build.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
name: Build binaries
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu requirements
if: matrix.os == 'ubuntu-latest'
run: |
echo "No requirements"
#sudo apt-get update
#sudo apt-get -y install autoconf automake bison flex gcc libelf-dev make texinfo libncurses5-dev patch python subversion wget zlib1g-dev libtool-bin python-dev bzip2 libgmp3-dev pkg-config
- name: Install macOS requirements
if: matrix.os == 'macos-latest'
run: |
echo "No requirements"
#brew update
#brew install autoconf automake openssl libelf ncurses zlib gmp wget pkg-config
- name: Runs all the stages in the shell
run: |
cd extractps3iso
make
cd ../makeps3iso
make
cd ../patchps3iso
make
cd ../splitps3iso
make
cd ..
- name: Get short SHA
id: slug
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
- name: Compress output
run: |
tar -zcvf build.tar.gz extractps3iso/extractps3iso makeps3iso/makeps3iso patchps3iso/patchps3iso splitps3iso/splitps3iso
- uses: actions/upload-artifact@v2
with:
name: build-${{ steps.slug.outputs.sha8 }}-${{matrix.os}}
path: build.tar.gz