Skip to content

Upgrade toolchain

Upgrade toolchain #60

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
workflow_dispatch: {}
jobs:
build:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [[macos-latest, bash], [macOS-11, bash], [ubuntu-latest, bash]]
defaults:
run:
shell: ${{ matrix.os[1] }} {0}
steps:
- uses: actions/checkout@v3
- name: Install on Ubuntu
if: matrix.os[0] == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get -y install gettext texinfo bison flex libncurses5-dev libgmp3-dev libmpfr-dev libmpc-dev
- name: Install on Mac
if: startsWith( matrix.os[0], 'macOS' )
run: |
brew update
brew install gettext texinfo bison flex gnu-sed gsl gmp mpfr
- name: Runs all stages
run: |
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
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@v3
with:
name: pspdev-${{ steps.slug.outputs.sha8 }}-${{ matrix.os[0] }}
path: pspdev.tar.gz
build-docker:
runs-on: ubuntu-latest
container: ${{ matrix.os[0] }}:latest
strategy:
matrix:
os: [[ubuntu, bash], [fedora, bash]]
steps:
- uses: actions/checkout@v3
- name: Install dependencies Ubuntu
if: matrix.os[0] == 'ubuntu'
run: |
apt-get -y update
DEBIAN_FRONTEND="noninteractive" TZ="Europe/London" apt-get -y install file bison make flex texinfo gettext \
g++ gcc git libgmp3-dev libmpfr-dev libmpc-dev libncurses5-dev
- name: Install dependencies Fedora
if: matrix.os[0] == 'fedora'
run: |
dnf -y install gcc gcc-c++ make git gettext texinfo bison flex gmp-devel mpfr-devel libmpc-devel \
ncurses-devel diffutils glibc-gconv-extra
- name: Runs all the stages in the shell
run: |
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@v3
with:
name: pspdev-${{ steps.slug.outputs.sha8 }}-${{ matrix.os[0] }}
path: pspdev.tar.gz