2022-02-13 16:12:10 +01:00
|
|
|
name: CI-PR
|
|
|
|
|
2023-02-17 11:55:31 +01:00
|
|
|
on: [ pull_request ]
|
2022-02-13 16:12:10 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
clang-format:
|
2022-09-04 17:31:30 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-13 16:12:10 +01:00
|
|
|
steps:
|
2023-02-17 11:55:31 +01:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: clang-format
|
|
|
|
run: |
|
|
|
|
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./source ./include
|
2022-02-13 16:12:10 +01:00
|
|
|
build-lib:
|
2022-09-04 17:31:30 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-13 16:12:10 +01:00
|
|
|
needs: clang-format
|
|
|
|
steps:
|
2023-02-17 11:55:31 +01:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: build lib
|
|
|
|
run: |
|
|
|
|
docker build . -f Dockerfile.buildlocal -t builder
|
|
|
|
docker run --rm -v ${PWD}:/project builder make
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: lib
|
|
|
|
path: "lib/*.a"
|