Skip to content

Commit fdf7803

Browse files
committed
[Temp] Test CI configuration pass
1 parent 979d90b commit fdf7803

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11+
#build-cfg: [Debug, DebugOpt, Release]
12+
build-cfg: [Release]
1113
config:
1214
- { os: ubuntu-22.04, platform: x64, cxx: g++-11, cc: gcc-11 }
1315
- { os: macos-12, platform: x64, cxx: clang++, cc: clang }
@@ -20,6 +22,7 @@ jobs:
2022
CXX: ${{ matrix.config.cxx }}
2123
VS_VERSION: ${{ matrix.config.vs }}
2224
PLATFORM: ${{ matrix.config.platform }}
25+
BUILD_CONFIGURATION: ${{ matrix.build-cfg }}
2326
DOTNET_NOLOGO: true
2427
DOTNET_CLI_TELEMETRY_OPTOUT: true
2528
EMSCRIPTEN_VERSION: 3.1.65
@@ -56,20 +59,20 @@ jobs:
5659
- name: Setup
5760
shell: bash
5861
run: |
59-
build/build.sh generate -platform $PLATFORM
60-
build/build.sh download_llvm -platform $PLATFORM
62+
build/build.sh generate -platform $PLATFORM -configuration $BUILD_CONFIGURATION
63+
build/build.sh download_llvm -platform $PLATFORM -configuration $BUILD_CONFIGURATION
6164
6265
- name: Restore
6366
shell: bash
64-
run: build/build.sh restore -platform $PLATFORM
67+
run: build/build.sh restore -platform $PLATFORM -configuration $BUILD_CONFIGURATION
6568

6669
- name: Build
6770
shell: bash
68-
run: build/build.sh -platform $PLATFORM -build_only
71+
run: build/build.sh -platform $PLATFORM -build_only -configuration $BUILD_CONFIGURATION
6972

7073
- name: Test (.NET)
7174
shell: bash
72-
run: build/test.sh -platform $PLATFORM
75+
run: build/test.sh -platform $PLATFORM -configuration $BUILD_CONFIGURATION
7376

7477
- name: Build (QuickJS runtime)
7578
shell: bash
@@ -88,7 +91,7 @@ jobs:
8891

8992
- name: Pack
9093
shell: bash
91-
run: build/build.sh prepack -platform $PLATFORM
94+
run: build/build.sh prepack -platform $PLATFORM -configuration $BUILD_CONFIGURATION
9295

9396
- uses: actions/upload-artifact@v3
9497
with:
@@ -107,6 +110,7 @@ jobs:
107110
env:
108111
DOTNET_NOLOGO: true
109112
DOTNET_CLI_TELEMETRY_OPTOUT: true
113+
BUILD_CONFIGURATION: Release
110114

111115
steps:
112116
- uses: actions/checkout@v4
@@ -122,11 +126,11 @@ jobs:
122126

123127
- name: Setup
124128
shell: bash
125-
run: build/build.sh generate_config
129+
run: build/build.sh generate_config -configuration $BUILD_CONFIGURATION
126130

127131
- name: Create package
128132
shell: bash
129-
run: build/build.sh pack
133+
run: build/build.sh pack -configuration $BUILD_CONFIGURATION
130134

131135
- name: Upload package
132136
uses: actions/upload-artifact@v3

build/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
builddir=$(cd "$(dirname "$0")"; pwd)
44
platform=x64
55
vs=vs2022
6-
configuration=DebugOpt
6+
configuration=Release
77
build_only=false
88
ci=false
99
target_framework=

0 commit comments

Comments
 (0)