Skip to content

Update MacOS build to use new homebrew path in opt #443

Update MacOS build to use new homebrew path in opt

Update MacOS build to use new homebrew path in opt #443

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
jobs:
build:
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@v3
- name: Install dependencies on Ubuntu
if: startsWith( matrix.os[0], 'ubuntu' )
run: |
sudo apt-get update
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 dependencies on MacOS
if: startsWith( matrix.os[0], 'macos' )
run: |
brew update
brew install gettext texinfo bison flex gnu-sed gsl gmp mpfr autoconf automake cmake libusb-compat libarchive gpgme bash openssl libtool
gsed -i '/Requires.private: iconv/d' /opt/homebrew/opt/libarchive/lib/pkgconfig/libarchive.pc || true
echo "MSYSTEM=x64" >> $GITHUB_ENV
- name: Runs full build in shell
run: |
export PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/opt/homebrew/opt/libtool/libexec/gnubin:$PATH"
export PKG_CONFIG_PATH="/opt/homebrew/opt/libarchive/lib/pkgconfig:/opt/homebrew/opt/openssl@3/lib/pkgconfig"
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./build-all.sh
- name: Prepare pspdev folder
run: |
tar -zcvf pspdev-${{matrix.os[0]}}.tar.gz pspdev
- uses: actions/upload-artifact@v3
with:
name: pspdev-${{matrix.os[0]}}
path: pspdev-${{matrix.os[0]}}.tar.gz
- name: Create pre-release
if: ${{ github.ref == 'refs/heads/master' }}
uses: softprops/action-gh-release@v1
with:
files: pspdev-${{matrix.os[0]}}.tar.gz
prerelease: true
name: "Development build"
tag_name: "latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: pspdev-${{matrix.os[0]}}.tar.gz
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-Dockers:
runs-on: ubuntu-latest
container: ${{ matrix.container[0] }}:${{ matrix.container[1] }}
strategy:
matrix:
container: [[fedora, latest]]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install dependencies Fedora
if: ${{ matrix.container[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 \
libusb-compat-0.1-devel readline-devel libcurl-devel which glibc-gconv-extra xz
- name: Runs full build in shell
run: |
export PSPDEV=$PWD/pspdev
export PATH=$PATH:$PSPDEV/bin
./build-all.sh
- name: Prepare pspdev folder
run: |
tar -zcvf pspdev-${{matrix.container[0]}}-${{matrix.container[1]}}.tar.gz pspdev
- uses: actions/upload-artifact@v3
with:
name: pspdev-${{matrix.container[0]}}-${{matrix.container[1]}}
path: pspdev-${{matrix.container[0]}}-${{matrix.container[1]}}.tar.gz
- name: Create pre-release
if: ${{ github.ref == 'refs/heads/master' }}
uses: softprops/action-gh-release@v1
with:
files: pspdev-${{matrix.container[0]}}-${{matrix.container[1]}}.tar.gz
prerelease: true
name: "Development build"
tag_name: "latest"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
files: pspdev-${{matrix.container[0]}}-${{matrix.container[1]}}.tar.gz
tag_name: ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}