Skip to content

Commit

Permalink
Cleaned up VM-based CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
samsinsane committed Dec 10, 2024
1 parent a54476c commit 637f776
Showing 1 changed file with 35 additions and 60 deletions.
95 changes: 35 additions & 60 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ jobs:
config: [debug, release]
platform: [x64]
cc: [gcc, clang]
defaults:
run:
shell: freebsd {0}
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -160,20 +164,11 @@ jobs:
prepare: |
pkg install -y gmake ca_root_nss gcc
- name: Build
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
run: bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: freebsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 docs-check
run: bin/${{ matrix.config }}/premake5 docs-check
- name: Upload Artifacts
if: matrix.config == 'release' && matrix.cc == 'clang'
uses: actions/upload-artifact@v4
Expand All @@ -187,6 +182,10 @@ jobs:
config: [debug, release]
platform: [x64]
cc: [clang]
defaults:
run:
shell: openbsd {0}
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -198,20 +197,11 @@ jobs:
prepare: |
pkg_add gmake
- name: Build
shell: openbsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: openbsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
run: bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: openbsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 docs-check
run: bin/${{ matrix.config }}/premake5 docs-check
- name: Upload Artifacts
if: matrix.config == 'release' && matrix.cc == 'clang'
uses: actions/upload-artifact@v4
Expand All @@ -225,6 +215,10 @@ jobs:
config: [debug, release]
platform: [x64]
cc: [gcc]
defaults:
run:
shell: netbsd {0}
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -234,27 +228,22 @@ jobs:
prepare: |
pkg_add gmake
- name: Build
shell: netbsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: netbsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
run: bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: netbsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 docs-check
run: bin/${{ matrix.config }}/premake5 docs-check
dragonflybsd:
runs-on: ubuntu-latest
strategy:
matrix:
config: [debug, release]
platform: [x64]
cc: [gcc]
defaults:
run:
shell: dragonflybsd {0}
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -264,27 +253,22 @@ jobs:
prepare: |
pkg install -y gmake
- name: Build
shell: dragonflybsd {0}
run: |
cd $GITHUB_WORKSPACE
PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
run: PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: dragonflybsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
run: bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: dragonflybsd {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 docs-check
run: bin/${{ matrix.config }}/premake5 docs-check
solaris:
runs-on: ubuntu-latest
strategy:
matrix:
config: [debug, release]
platform: [x64]
cc: [gcc]
defaults:
run:
shell: solaris {0}
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -297,20 +281,11 @@ jobs:
mem: 8192
release: 11.4-gcc
- name: Build
shell: solaris {0}
run: |
cd $GITHUB_WORKSPACE
CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
run: CC=${{ matrix.cc }} PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }} PREMAKE_OPTS="--cc=${{ matrix.cc }}" ./Bootstrap.sh
- name: Test
shell: solaris {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 test --test-all
run: bin/${{ matrix.config }}/premake5 test --test-all
- name: Docs check
shell: solaris {0}
run: |
cd $GITHUB_WORKSPACE
bin/${{ matrix.config }}/premake5 docs-check
run: bin/${{ matrix.config }}/premake5 docs-check
- name: Upload Artifacts
if: matrix.config == 'release' && matrix.cc == 'gcc'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 637f776

Please sign in to comment.