From 270dbb3d43466953dc2765458d84c17de204aef3 Mon Sep 17 00:00:00 2001 From: duckdoom5 Date: Wed, 22 Jan 2025 22:41:05 +0100 Subject: [PATCH] [Temp] Test CI configuration pass --- .github/workflows/main.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0693eb0d8..dd40d7769 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,8 @@ jobs: strategy: fail-fast: false matrix: + #build-cfg: [Debug, DebugOpt, Release] + build-cfg: [Release] config: - { os: ubuntu-22.04, platform: x64, cxx: g++-11, cc: gcc-11 } - { os: macos-12, platform: x64, cxx: clang++, cc: clang } @@ -20,6 +22,7 @@ jobs: CXX: ${{ matrix.config.cxx }} VS_VERSION: ${{ matrix.config.vs }} PLATFORM: ${{ matrix.config.platform }} + BUILD_CONFIGURATION: ${{ matrix.build-cfg }} DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true EMSCRIPTEN_VERSION: 3.1.65 @@ -56,20 +59,20 @@ jobs: - name: Setup shell: bash run: | - build/build.sh generate -platform $PLATFORM - build/build.sh download_llvm -platform $PLATFORM + build/build.sh generate -platform $PLATFORM -configuration $BUILD_CONFIGURATION + build/build.sh download_llvm -platform $PLATFORM -configuration $BUILD_CONFIGURATION - name: Restore shell: bash - run: build/build.sh restore -platform $PLATFORM + run: build/build.sh restore -platform $PLATFORM -configuration $BUILD_CONFIGURATION - name: Build shell: bash - run: build/build.sh -platform $PLATFORM -build_only + run: build/build.sh -platform $PLATFORM -build_only -configuration $BUILD_CONFIGURATION - name: Test (.NET) shell: bash - run: build/test.sh -platform $PLATFORM + run: build/test.sh -platform $PLATFORM -configuration $BUILD_CONFIGURATION - name: Build (QuickJS runtime) shell: bash @@ -88,7 +91,7 @@ jobs: - name: Pack shell: bash - run: build/build.sh prepack -platform $PLATFORM + run: build/build.sh prepack -platform $PLATFORM -configuration $BUILD_CONFIGURATION - uses: actions/upload-artifact@v3 with: @@ -107,6 +110,7 @@ jobs: env: DOTNET_NOLOGO: true DOTNET_CLI_TELEMETRY_OPTOUT: true + BUILD_CONFIGURATION: Release steps: - uses: actions/checkout@v4 @@ -122,11 +126,11 @@ jobs: - name: Setup shell: bash - run: build/build.sh generate_config + run: build/build.sh generate_config -configuration $BUILD_CONFIGURATION - name: Create package shell: bash - run: build/build.sh pack + run: build/build.sh pack -configuration $BUILD_CONFIGURATION - name: Upload package uses: actions/upload-artifact@v3