Skip to content

Commit a971fbd

Browse files
committed
fix: String latin1+utf6 working
fix: GH Actions chore: Added more tests Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 2d0efda commit a971fbd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2762
-3112
lines changed

.github/workflows/install.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/macos.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,45 @@ on:
1212

1313
env:
1414
CTEST_OUTPUT_ON_FAILURE: 1
15-
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
1615

1716
jobs:
1817
build:
19-
runs-on: macos-latest
18+
strategy:
19+
matrix:
20+
include:
21+
- os: "macos-13"
22+
- os: "macos-14"
2023

24+
runs-on: ${{ matrix.os }}
2125
steps:
26+
- name: Set up C++20
27+
uses: aminya/setup-cpp@v0.44.0
28+
with:
29+
compiler: gcc
30+
cmake: true
31+
ninja: true
32+
2233
- uses: actions/checkout@v3
2334
with:
2435
submodules: recursive
2536

2637
- uses: actions/cache@v3
2738
with:
28-
path: "**/cpm_modules"
29-
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
39+
path: "build/vcpkg_installed/**/*"
40+
key: ${{ matrix.os }}-vcpkg_installed
3041

3142
- name: install dependencies
3243
run: |
33-
brew install ninja
44+
brew install autoconf autoconf-archive automake coreutils libtool ninja
3445
3546
- name: configure
3647
run: |
37-
cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Debug
48+
cmake --preset linux-ninja-Debug
3849
3950
- name: build
40-
run: cmake --build build --parallel
51+
run: |
52+
cmake --build --preset linux-ninja-Debug
4153
4254
- name: test
43-
working-directory: build/test
4455
run: |
45-
ctest
46-
56+
./build/test/component-model-test

.github/workflows/standalone.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/style.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/ubuntu.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313
env:
1414
CTEST_OUTPUT_ON_FAILURE: 1
1515
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
16-
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
1716

1817
jobs:
1918
build:
@@ -26,26 +25,29 @@ jobs:
2625

2726
- uses: actions/cache@v3
2827
with:
29-
path: "**/cpm_modules"
30-
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
28+
path: "build/vcpkg_installed/**/*"
29+
key: ${{ github.workflow }}-vcpkg_installed
3130

3231
- name: install dependencies
3332
run: |
34-
sudo apt-get install ninja-build
33+
sudo apt-get install -y \
34+
autoconf \
35+
autoconf-archive \
36+
automake \
37+
build-essential \
38+
ninja-build
3539
3640
- name: configure
3741
run: |
38-
cmake -G Ninja -S . -B build -DENABLE_TEST_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug
39-
40-
- name: build-wasm
41-
run: ./test/wasm/build.sh
42+
cmake --preset linux-ninja-Debug
4243
4344
- name: build
44-
run: cmake --build build --parallel
45+
run: |
46+
cmake --build --preset linux-ninja-Debug
4547
4648
- name: test
4749
run: |
48-
ctest --test-dir ./build/test
50+
./build/test/component-model-test
4951
5052
- name: Upload coverage reports to Codecov
5153
uses: codecov/codecov-action@v4.0.1

.github/workflows/windows.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ on:
1212

1313
env:
1414
CTEST_OUTPUT_ON_FAILURE: 1
15-
CPM_SOURCE_CACHE: ${{ github.workspace }}/cpm_modules
1615

1716
jobs:
1817
build:
19-
runs-on: windows-latest
18+
strategy:
19+
matrix:
20+
include:
21+
- os: "windows-2019"
22+
config: vcpkg-VS-16
23+
build: VS-16-Debug
24+
25+
- os: "windows-2022"
26+
config: vcpkg-VS-17
27+
build: VS-17-Debug
28+
29+
runs-on: ${{ matrix.os }}
2030

2131
steps:
2232
- uses: actions/checkout@v3
@@ -25,18 +35,17 @@ jobs:
2535

2636
- uses: actions/cache@v3
2737
with:
28-
path: "**/cpm_modules"
29-
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
38+
path: "build/vcpkg_installed/**/*"
39+
key: ${{ matrix.os }}-vcpkg_installed
3040

3141
- name: configure
3242
run: |
33-
cmake -S . -B build
43+
cmake --preset ${{ matrix.config }}
3444
3545
- name: build
36-
run: cmake --build build --config Debug --parallel
46+
run: |
47+
cmake --build --preset ${{ matrix.build }}
3748
3849
- name: test
39-
working-directory: build/test
4050
run: |
41-
ctest
42-
51+
./build/test/Debug/component-model-test.exe

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/build*
2-
/.vscode
2+
/.vscode/settings.json
33
/cpm_modules
44
/vcpkg_installed
5+
/test/wasm/build*
56
.DS_Store

.gitmodules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
url = https://github.com/microsoft/vcpkg.git
44
[submodule "ref/component-model"]
55
path = ref/component-model
6-
url = git@github.com:WebAssembly/component-model.git
6+
url = https://github.com/WebAssembly/component-model.git
7+
[submodule "ref/vscode-wasm"]
8+
path = ref/vscode-wasm
9+
url = git@github.com:microsoft/vscode-wasm.git

.vscode/launch.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "(gdb) component-model-tests",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "${workspaceFolder}/build/test/component-model-test",
9+
"args": [],
10+
"stopAtEntry": false,
11+
"cwd": "${workspaceFolder}",
12+
"environment": [],
13+
"externalConsole": false,
14+
"preLaunchTask": "CMake: build"
15+
},
16+
{
17+
"name": "(win) component-model-tests",
18+
"type": "cppvsdbg",
19+
"request": "launch",
20+
"program": "${workspaceFolder}/build/test/Debug/component-model-test.exe",
21+
"args": [],
22+
"console": "integratedTerminal",
23+
"stopAtEntry": false,
24+
"cwd": "${workspaceFolder}",
25+
"environment": [],
26+
"preLaunchTask": "CMake: build"
27+
}
28+
]
29+
}

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "CMake: build",
6+
"type": "shell",
7+
"command": "cmake",
8+
"args": [
9+
"--build",
10+
"${workspaceFolder}/build",
11+
"--parallel"
12+
],
13+
"group": {
14+
"kind": "build",
15+
"isDefault": true
16+
},
17+
"problemMatcher": "$msCompile"
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)