rename validate to ci/bin, and split up workflows

This is mainly to improve the clairity of the workflows, also allowing
them to be used for the different "badges", showing the state of each.
This commit is contained in:
Quinn
2025-04-14 19:11:20 +02:00
committed by Quinn
parent 32c024d849
commit 8b410a492a
3 changed files with 41 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
name: validate
name: bin
on:
push:
branches:
@@ -7,8 +7,7 @@ on:
branches:
- '**'
jobs:
# TODO: add unit test job here
compile-and-lint:
compile:
runs-on: ubuntu-latest
container:
image: ghcr.io/thepigeongenerator/mcaselector-lite:latest
@@ -20,4 +19,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: make compile ARCH=${{matrix.arch}} -j
# TODO: add linting checking here

17
.github/workflows/ci-lint.yaml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: lint
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
compile:
runs-on: ubuntu-latest
container:
image: ghcr.io/thepigeongenerator/mcaselector-lite:latest
steps:
# TODO: add linting checking here
- run: echo "TODO"

21
.github/workflows/ci-tests.yaml vendored Normal file
View File

@@ -0,0 +1,21 @@
name: tests
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
execute-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/thepigeongenerator/mcaselector-lite:latest
strategy:
matrix:
arch:
- linux-x86_64
- win-x86_64
steps:
# TODO: add unit test job here
- run: echo "TODO"