-
-
Notifications
You must be signed in to change notification settings - Fork 21
64 lines (54 loc) · 1.49 KB
/
compile-core.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
57
58
59
60
61
62
63
64
name: Build [All]
on:
workflow_dispatch:
push:
paths:
- 'installer/**'
- 'installer_res/**'
- '.github/workflows/compile-core.yml'
schedule:
- cron: "0 15 1 * *"
jobs:
build-packages:
runs-on: ubuntu-latest
container: ps2dev/ps2dev:v1.0
steps:
- name: Install dependencies
run: |
apk add build-base git zip p7zip
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch
- name: Get short SHA
id: slug
run: echo "SHA8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
- name: Compile
run: |
cd installer
make rebuild FMCB_INSTALLER_VERSION=${{ env.SHA8 }} EE_BIN_DIR=../installer_res/
make rebuild FMCB_INSTALLER_VERSION=${{ env.SHA8 }} EE_BIN_DIR=../installer_res/ EXFAT=1
- name: Prepare folder for Release
run: |
cd installer_res
ls
chmod +x ./pack.sh
./pack.sh
- name: Upload artifact
if: ${{ success() }}
uses: actions/upload-artifact@v3
with:
name: FMCB-${{ env.SHA8 }}
path: |
FMCB*.7z
- name: Create release
if: github.ref == 'refs/heads/master'
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "FreeMcBoot"
files: |
FMCB*.7z