-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (60 loc) · 1.97 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
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build-docker:
runs-on: ubuntu-latest
container: ${{ matrix.os[0] }}:latest
strategy:
matrix:
os: [[alpine, bash], [fedora, bash]]
steps:
- uses: actions/checkout@v4
- name: Install dependencies Alpine
if: matrix.os[0] == 'alpine'
run: |
apk add --no-cache build-base bash git autoconf automake python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev libtool
- name: Install dependencies Fedora
if: matrix.os[0] == 'fedora'
run: |
dnf -y install @development-tools g++ wget xz git autoconf automake python3 python3-pip cmake pkgconf libarchive-devel openssl-devel gpgme-devel libtool
- name: Compile Tools
run: |
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./build-all.sh
build-VM:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [
[macos-latest, arm64, bash],
[macos-13, x86_64, bash],
[ubuntu-latest, x86_64, bash],
[windows-latest, x86_64, msys2]
]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[2] }} {0}
steps:
- uses: actions/checkout@v4
- name: Install on Ubuntu
if: matrix.os[0] == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install libarchive-dev libcurl4 libcurl4-openssl-dev libssl-dev libarchive-dev libgpgme-dev
- name: Install Dependencies Mac
if: startsWith( matrix.os[0], 'macos' )
run: |
brew install automake libarchive bash openssl libarchive gpgme libtool
- name: Compile Tools
run: |
export PATH="$(brew --prefix libtool)/libexec/gnubin:$PATH"
export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig:$(brew --prefix openssl@3)/lib/pkgconfig"
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./build-all.sh