-
Notifications
You must be signed in to change notification settings - Fork 121
98 lines (82 loc) · 2.87 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-docker:
runs-on: ubuntu-latest
container: ${{ matrix.os[0] }}:${{ matrix.os[1] }}
strategy:
matrix:
os: [
[alpine, latest],
[fedora, latest],
]
fail-fast: false
steps:
- name: Install dependencies Alpine
if: matrix.os[0] == 'alpine'
run: |
apk add --no-cache build-base bash gcc git make autoconf automake python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev \
libtool flex bison texinfo gmp-dev mpfr-dev mpc1-dev readline-dev ncurses-dev
- name: Install dependencies Fedora
if: matrix.os[0] == 'fedora'
run: |
dnf -y install @development-tools gcc gcc-c++ g++ wget git autoconf automake python3 python3-pip make cmake pkgconf \
libarchive-devel openssl-devel gpgme-devel libtool gettext texinfo bison flex gmp-devel mpfr-devel libmpc-devel ncurses-devel \
diffutils glibc-gconv-extra xz
- uses: actions/checkout@v4
- name: Compile Tools
run: |
chown -R $(id -nu):$(id -ng) .
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./toolchain.sh
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Compress pspdev folder
run: |
tar -zcvf pspdev.tar.gz pspdev
- uses: actions/upload-artifact@v4
with:
name: pspdev-${{ steps.slug.outputs.sha8 }}-${{ matrix.os[0] }}
path: pspdev.tar.gz
build-VM:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [
[macos-latest, arm64, bash],
[macos-13, x86_64, bash],
[ubuntu-latest, x86_64, bash],
]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[2] }} {0}
steps:
- uses: actions/checkout@v4
- name : Install dependencies on required OS
run: |
./prepare.sh
- name: Compile Tools
run: |
export PATH="$(brew --prefix gnu-sed)/libexec/gnubin:$PATH" # This really is only needed for macOS
export PATH="$(brew --prefix libtool)/libexec/gnubin:$PATH" # This really is only needed for macOS
export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig:$(brew --prefix openssl)/lib/pkgconfig" #This really is only needed for macOS
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./toolchain.sh
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Compress pspdev folder
run: |
tar -zcvf pspdev.tar.gz pspdev
- uses: actions/upload-artifact@v4
with:
name: pspdev-${{ steps.slug.outputs.sha8 }}-${{ matrix.os[0] }}-${{ matrix.os[1] }}
path: pspdev.tar.gz