Skip to content

Migrate to cmake

Migrate to cmake #25

Workflow file for this run

name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
container: ${{ github.repository_owner }}/ps2sdk:latest
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
run: |
apk update
apk add cmake build-base git make
- name: Configure with CMake
run: |
mkdir build
cd build
cmake ..
- name: Build project with CMake
run: |
cd build
make -j $(getconf _NPROCESSORS_ONLN)
- name: Install library
run: |
cd build
make -j $(getconf _NPROCESSORS_ONLN) install
- name: Get short SHA
id: slug
run: echo "sha8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_OUTPUT
- name: Upload artifacts
if: ${{ success() }}
uses: actions/upload-artifact@v4
with:
name: libps2stuff-${{ steps.slug.outputs.sha8 }}
path: |
build/*.a