forked from jsvennevid/openvcl
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.04 KB
/
compilation.yml
File metadata and controls
45 lines (38 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: CI
on:
push:
pull_request:
repository_dispatch:
types: [run_build]
workflow_dispatch: {}
jobs:
ps2:
runs-on: ubuntu-latest
container: ps2dev/ps2sdk:latest
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
run: |
apk update
apk add build-base make git cmake
- name: Compile OpenVCL and examples
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$PS2DEV" -DBUILD_EXAMPLES=ON
cmake --build build -j $(getconf _NPROCESSORS_ONLN)
- name: Run OpenVCL tests
run: |
ctest --test-dir build --output-on-failure
- name: Install OpenVCL
run: |
cmake --install build
- 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: openvcl-${{ steps.slug.outputs.sha8 }}
path: |
openvcl
examples/**/*.elf