From baa1cd78b29df57d259ac6fbdbb1082405a3b948 Mon Sep 17 00:00:00 2001 From: Sebastian Erives Date: Sat, 5 Aug 2023 17:30:10 -0600 Subject: [PATCH 1/2] Linux first in CI --- .github/workflows/build_natives.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_natives.yml b/.github/workflows/build_natives.yml index fb4a253..0d378a6 100644 --- a/.github/workflows/build_natives.yml +++ b/.github/workflows/build_natives.yml @@ -11,17 +11,17 @@ env: BUILD_TYPE: Debug jobs: - build-windows: + build-linux: + needs: build-windows # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: submodules: recursive - - uses: actions/setup-java@v3 with: distribution: 'adopt' # See 'Supported distributions' for available options @@ -36,17 +36,17 @@ jobs: # Build your program with the given configuration run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}} - build-linux: - needs: build-windows + build-windows: # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v3 with: submodules: recursive + - uses: actions/setup-java@v3 with: distribution: 'adopt' # See 'Supported distributions' for available options @@ -62,7 +62,6 @@ jobs: run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}} build-mac: - needs: build-linux # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix From 3fe6667a73e43c36b1d0776456b0955dc81f95dd Mon Sep 17 00:00:00 2001 From: Sebastian Erives Date: Sat, 5 Aug 2023 17:30:55 -0600 Subject: [PATCH 2/2] Make platform builds independent and parallel in build_natives --- .github/workflows/build_natives.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build_natives.yml b/.github/workflows/build_natives.yml index 0d378a6..5b4ad50 100644 --- a/.github/workflows/build_natives.yml +++ b/.github/workflows/build_natives.yml @@ -12,7 +12,6 @@ env: jobs: build-linux: - needs: build-windows # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix