diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index 671f5020e..18662bb8b 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -234,20 +228,11 @@ 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: @@ -255,6 +240,10 @@ jobs: config: [debug, release] platform: [x64] cc: [gcc] + defaults: + run: + shell: dragonflybsd {0} + working-directory: $GITHUB_WORKSPACE steps: - name: Checkout uses: actions/checkout@v4 @@ -264,20 +253,11 @@ 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: @@ -285,6 +265,10 @@ jobs: config: [debug, release] platform: [x64] cc: [gcc] + defaults: + run: + shell: solaris {0} + working-directory: $GITHUB_WORKSPACE steps: - name: Checkout uses: actions/checkout@v4 @@ -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