Merge pull request #31 from pspdev/fix-deprecation-warnings #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
repository_dispatch: | |
types: [run_build] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: alpine:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
apk add build-base bash python3 py3-pip cmake pkgconfig libarchive-dev openssl-dev gpgme-dev | |
- name: Compile project | |
run: | | |
export PSPDEV=$PWD/pspdev | |
export PATH=$PATH:$PSPDEV/bin | |
./pacman.sh | |
export PATH=$PATH:$PSPDEV/bin | |
psp-pacman -V | |
psp-makepkg -V | |
build-VM: | |
runs-on: ${{ matrix.os[0] }} | |
strategy: | |
matrix: | |
os: [[macos-latest, bash], [ubuntu-latest, bash]] | |
fail-fast: false | |
defaults: | |
run: | |
shell: ${{ matrix.os[1] }} {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Ubuntu texinfo bison flex libucl-dev | |
if: matrix.os[0] == 'ubuntu-latest' | |
run: | | |
sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev libusb-dev libreadline-dev libcurl4 libcurl4-openssl-dev libssl-dev libarchive-dev libgpgme-dev | |
echo "MSYSTEM=x64" >> $GITHUB_ENV | |
- name: Install Mac texinfo bison flex ucl | |
if: matrix.os[0] == 'macOS-latest' | |
run: | | |
brew install gettext texinfo bison flex gnu-sed ncurses gsl gmp mpfr autoconf automake cmake libusb-compat libarchive gpgme bash openssl libtool | |
gsed -i '/Requires.private: iconv/d' /usr/local/opt/libarchive/lib/pkgconfig/libarchive.pc || true | |
echo "MSYSTEM=x64" >> $GITHUB_ENV | |
- 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 | |
./pacman.sh | |
export PATH=$PATH:$PSPDEV/bin | |
psp-pacman -V | |
psp-makepkg -V |