Skip to content

Improve oslLoadImageFile function for better safety and extensibility #63

Improve oslLoadImageFile function for better safety and extensibility

Improve oslLoadImageFile function for better safety and extensibility #63

Workflow file for this run

name: Building
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os[0] }}
strategy:
matrix:
os: [
[macos-13, x86_64, bash],
[ubuntu-22.04, x86_64, bash]
]
fail-fast: false
defaults:
run:
shell: ${{ matrix.os[2] }} {0}
steps:
- uses: actions/checkout@v4
- name: Install dependencies on required OS
run: |
# Set OS specific variables
if [[ "${{ matrix.os[0] }}" == "ubuntu-22.04" ]]; then
URL="https://github.com/pspdev/pspdev/releases/download/v20240609/pspdev-ubuntu-latest-x86_64.tar.gz"
elif [[ "${{ matrix.os[0] }}" == "macos-13" ]]; then
URL="https://github.com/pspdev/pspdev/releases/download/v20240609/pspdev-macos-13-x86_64.tar.gz"
fi
# Extract the file name from the URL
FILE=$(basename $URL)
# Download the release tarball
wget $URL
# Extract the tarball
tar -xzf $FILE
- name: Runs build in shell
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
export PATH=$PATH:$PSPDEV/bin
make