Skip to content

Increasing binutils and upgrading CI/CD #72

Increasing binutils and upgrading CI/CD

Increasing binutils and upgrading CI/CD #72

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build, run_release]
workflow_dispatch: {}
jobs:
build:
runs-on: ${{ matrix.target.machine }}
strategy:
matrix:
target:
- machine: macos-latest
architecture: arm64
shell: bash
packageManager: brew
- machine: macos-13
architecture: x86_64
shell: bash
packageManager: brew
- machine: macos-latest
architecture: arm64
shell: bash
packageManager: macport
- machine: ubuntu-latest
architecture: x86_64
shell: bash
packageManager: default
- machine: ubuntu-22.04-arm
architecture: arm64
shell: bash
packageManager: default
- machine: ubuntu-24.04-arm
architecture: arm64
shell: bash
packageManager: default
- machine: windows-latest
architecture: x86_64
shell: msys2
packageManager: default
fail-fast: false
defaults:
run:
shell: ${{ matrix.target.shell }} {0}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Ubuntu packages
if: startsWith(matrix.target.machine, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get -y install texinfo bison flex gettext libgmp3-dev libmpfr-dev libmpc-dev
- name: Install macOS packages with brew
if: startsWith(matrix.target.machine, 'macos') && matrix.target.packageManager == 'brew'
run: |
brew update
brew install texinfo bison flex gnu-sed gsl gmp mpfr libmpc
- name: Install macOS packages with macport
if: startsWith(matrix.target.machine, 'macos') && matrix.target.packageManager == 'macport'
run: |
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci
source ./macports-ci install --remove-brew --version=2.11.5 --sync=rsync
sudo port install gmp mpfr libmpc libiconv bison flex texinfo
- name: Install MSYS2 packages
if: startsWith(matrix.target.machine, 'windows')
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
install: |
base-devel git make texinfo flex bison patch binutils mpc-devel tar
mingw-w64-i686-readline mingw-w64-i686-gcc
mingw-w64-i686-cmake mingw-w64-i686-make mingw-w64-i686-libogg
update: true
- name: Runs all the stages in the shell
continue-on-error: false
run: |
export PS2DEV=$PWD/ps2dev
export PATH=$PATH:$PS2DEV/dvp/bin
./toolchain.sh
- name: Print version of executables
run: |
export PS2DEV=$PWD/ps2dev
export PATH=$PATH:$PS2DEV/dvp/bin
dvp-as --version