2022-02-04 22:24:22 +01:00
|
|
|
name: CI-PR
|
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
clang-format-lib:
|
2022-09-04 17:25:55 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-04 22:24:22 +01:00
|
|
|
steps:
|
2023-01-06 15:07:46 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-04 22:24:22 +01:00
|
|
|
- name: clang-format
|
|
|
|
run: |
|
|
|
|
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./include ./libraries
|
|
|
|
build-lib:
|
2022-09-04 17:25:55 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-04 22:24:22 +01:00
|
|
|
needs: clang-format-lib
|
|
|
|
steps:
|
2023-01-06 15:07:46 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-04 22:24:22 +01:00
|
|
|
- name: build binary
|
|
|
|
run: |
|
|
|
|
docker build . -f Dockerfile.buildlocal -t builder
|
|
|
|
docker run --rm -v ${PWD}:/project builder make
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: binary
|
2022-09-04 17:32:16 +02:00
|
|
|
path: "lib/*.a"
|
2022-02-04 22:49:31 +01:00
|
|
|
clang-format-examples:
|
2022-09-04 17:25:55 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-04 22:49:31 +01:00
|
|
|
steps:
|
2023-01-06 15:07:46 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-04 22:49:31 +01:00
|
|
|
- name: clang-format
|
|
|
|
run: |
|
|
|
|
docker run --rm -v ${PWD}:/src wiiuenv/clang-format:13.0.0-2 -r ./example/example_module/source
|
|
|
|
build-examples:
|
2022-09-04 17:25:55 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2022-02-04 22:49:31 +01:00
|
|
|
needs: clang-format-examples
|
|
|
|
steps:
|
2023-01-06 15:07:46 +01:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-04 22:49:31 +01:00
|
|
|
- name: build binary
|
|
|
|
run: |
|
|
|
|
docker build . -f Dockerfile.buildexamples -t builder
|
|
|
|
cd ./example/example_module
|
|
|
|
docker run --rm -v ${PWD}:/project builder make
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: binary
|
|
|
|
path: "*.wms"
|