Skip to content

Commit

Permalink
Refactored GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Zoppi <texzk@email.it>
  • Loading branch information
TexZK committed Mar 30, 2024
1 parent b297303 commit 5c5afc8
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 115 deletions.
131 changes: 131 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: Compile

on:
push:
branches:
- main
- github_actions

pull_request:

jobs:

debug:

strategy:
matrix:

runner_image:
- ubuntu-latest
- macos-latest
- windows-latest

compiler:
- gcc
#FIXME: - clang

runs-on: ${{ matrix.runner_image }}

env:
CC: ${{ matrix.compiler }}

steps:

- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: setup-python
uses: actions/setup-python@v5

- name: build
uses: BSFishy/meson-build@v1.0.3
with:
action: build
directory: builddir
setup-options: -Dbuildtype=debug
meson-version: 1.4.0
ninja-version: 1.11.1

dbgopt:

strategy:
matrix:

runner_image:
- ubuntu-latest
- macos-latest
- windows-latest

compiler:
- gcc
#FIXME: - clang

runs-on: ${{ matrix.runner_image }}

env:
CC: ${{ matrix.compiler }}

steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: setup-python
uses: actions/setup-python@v5

- name: build
uses: BSFishy/meson-build@v1.0.3
with:
action: build
directory: builddir
setup-options: -Dbuildtype=debugoptimized
meson-version: 1.4.0
ninja-version: 1.11.1

release:

strategy:
matrix:

runner_image:
- ubuntu-latest
- macos-latest
- windows-latest

compiler:
- gcc
#FIXME: - clang

runs-on: ${{ matrix.runner_image }}

env:
CC: ${{ matrix.compiler }}

steps:
- name: checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: setup-python
uses: actions/setup-python@v5

- name: build
uses: BSFishy/meson-build@v1.0.3
with:
action: build
directory: builddir
setup-options: -Dbuildtype=release
meson-version: 1.4.0
ninja-version: 1.11.1

- name: test
uses: BSFishy/meson-build@v1.0.3
with:
action: test
directory: builddir
meson-version: 1.4.0
ninja-version: 1.11.1
74 changes: 0 additions & 74 deletions .github/workflows/compile.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .github/workflows/test.yml

This file was deleted.

20 changes: 19 additions & 1 deletion .github/workflows/test_all_scores.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@ name: Test All Scores
on: workflow_dispatch

jobs:

test:
runs-on: ubuntu-latest

strategy:
matrix:

runner_image:
- ubuntu-latest
- macos-latest
- windows-latest

compiler:
- gcc
#FIXME: - clang

runs-on: ${{ matrix.runner_image }}

env:
CC: ${{ matrix.compiler }}

steps:

- name: checkout
Expand Down

0 comments on commit 5c5afc8

Please sign in to comment.