forked from KallistiOS/KallistiOS
-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (44 loc) · 1.31 KB
/
pr-kos-check.yaml
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
46
47
48
49
50
51
52
name: KOS Check on PRs
on:
pull_request:
branches:
- master
paths:
- 'include/**'
- 'kernel/**'
- 'addons/**'
- 'utils/**'
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
tag:
- "13.3-legacy"
- "14.2-stable"
- "15.0-dev"
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Toolchain Image
run: |
docker pull ghcr.io/kallistiosunchained/dc-toolchain:${{ matrix.tag }}
- name: Build SDK
run: |
docker run --rm \
-v ${{ github.workspace }}:/opt/toolchains/dc/kos \
-w /opt/toolchains/dc/kos \
ghcr.io/kallistiosunchained/dc-toolchain:${{ matrix.tag }} \
/bin/bash -c "source environ.sh.master && make V=1 | tee build.log"
- name: Upload Build Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: build-logs-${{ matrix.tag }}-pr-${{ github.event.pull_request.number }}-${{ github.run_id }}
path: build.log