Skip to content

Commit dec2a17

Browse files
committed
WIP
1 parent 3e6d1fb commit dec2a17

4 files changed

Lines changed: 551 additions & 516 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,23 @@ on:
66
pull_request:
77
branches: [ "master" ]
88

9-
# https://devblogs.microsoft.com/cppblog/vcpkg-integration-with-the-github-dependency-graph/
10-
permissions:
11-
contents: write
12-
139
env:
14-
# https://devblogs.microsoft.com/cppblog/vcpkg-integration-with-the-github-dependency-graph/
15-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
16-
VCPKG_ROOT: "C:/my-vcpkg"
1710
VCPKG_DEFAULT_BINARY_CACHE: "C:/vcpkg-binary-cache"
18-
VCPKG_FEATURE_FLAGS: dependencygraph
19-
BUILD_TYPE: RelWithDebInfo
2011

2112
jobs:
2213
build:
2314
runs-on: windows-2022
15+
strategy:
16+
matrix:
17+
arch: [x64, x86]
2418
steps:
2519
- uses: actions/checkout@v4
2620

21+
- name: Setup Developer Command Prompt
22+
uses: ilammy/msvc-dev-cmd@v1
23+
with:
24+
arch: ${{ matrix.arch }}
25+
2726
- name: Get project vcpkg baseline
2827
shell: pwsh
2928
run: |
@@ -33,40 +32,41 @@ jobs:
3332
- name: Cache vcpkg
3433
uses: actions/cache@v4
3534
with:
36-
key: vcpkg-${{ hashFiles('vcpkg.json') }}
35+
key: vcpkg-${{ matrix.arch }}-${{ hashFiles('vcpkg.json') }}
3736
path: |
3837
${{env.VCPKG_DEFAULT_BINARY_CACHE}}
3938
4039
- name: Setup vcpkg
4140
run: |
42-
New-Item -ItemType Directory -Path ${{env.VCPKG_ROOT}}
43-
Set-Location -Path ${{env.VCPKG_ROOT}}
41+
New-Item -ItemType Directory -Path C:/my-vcpkg
42+
Set-Location -Path C:/my-vcpkg
4443
git init
4544
git remote add --no-tags origin https://github.com/microsoft/vcpkg.git
4645
git fetch --depth 1 --no-write-fetch-head origin ${{env.VCPKG_BASELINE}}
4746
git branch master ${{env.VCPKG_BASELINE}}
4847
git checkout
4948
./bootstrap-vcpkg.bat
5049
New-Item -ItemType Directory -Path ${{env.VCPKG_DEFAULT_BINARY_CACHE}} -Force
50+
echo "VCPKG_ROOT=C:/my-vcpkg" >> $env:GITHUB_ENV
5151
5252
- name: Configure CMake
53-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} --toolchain ${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake
53+
run: cmake --preset ${{ matrix.arch }}-release
5454

5555
- name: Build
56-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
56+
run: cmake --build ${{github.workspace}}/build/${{ matrix.arch }}-release
5757

58-
- name: Pack
59-
run: |
60-
cd ${{github.workspace}}/build
61-
cpack --config CPackConfig.cmake -C ${{env.BUILD_TYPE}}
62-
63-
- name: Release nightly build
64-
uses: andelf/nightly-release@main
65-
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
66-
with:
67-
name: 'Nightly Release $$'
68-
body: 'This is an automated nightly build. Download the *-dll.zip files if you need Observer modules. Download the *-pdb.zip files if you need debug symbols.'
69-
tag_name: nightly
70-
prerelease: false
71-
files: |
72-
./build/*.zip
58+
# - name: Pack
59+
# run: |
60+
# cd ${{github.workspace}}/build/${{ matrix.arch }}-release
61+
# cpack --config CPackConfig.cmake -C RelWithDebInfo
62+
#
63+
# - name: Release nightly build
64+
# uses: andelf/nightly-release@main
65+
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
66+
# with:
67+
# name: 'Nightly Release $$'
68+
# body: 'This is an automated nightly build. Download the *-dll.zip files if you need Observer modules. Download the *-pdb.zip files if you need debug symbols.'
69+
# tag_name: nightly
70+
# prerelease: false
71+
# files: |
72+
# ./build/*.zip

.idea/dictionaries/project.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)