WiiUModuleSystem/.github/workflows/pr.yml

47 lines
1.3 KiB
YAML
Raw Normal View History

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: |
2023-04-01 08:46:37 +02:00
docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/clang-format:13.0.0-2 -r ./include ./libraries
2022-02-04 22:24:22 +01:00
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: |
2023-01-06 15:08:40 +01:00
docker build . -f Dockerfile -t tmp
2022-02-04 22:24:22 +01:00
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"
clang-format-examples:
2022-09-04 17:25:55 +02:00
runs-on: ubuntu-22.04
steps:
2023-01-06 15:07:46 +01:00
- uses: actions/checkout@v3
- name: clang-format
run: |
2023-04-01 08:46:37 +02:00
docker run --rm -v ${PWD}:/src ghcr.io/wiiu-env/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
needs: clang-format-examples
steps:
2023-01-06 15:07:46 +01:00
- uses: actions/checkout@v3
- 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"