@@ -34,27 +34,30 @@ jobs:
3434 DEBUG_BUILD_DIR : ${{github.workspace}}\out\build\x64-windows\Debug
3535 RELEASE_BUILD_DIR : ${{github.workspace}}\out\build\x64-windows\Release
3636 INSTALL_DIR : ${{github.workspace}}\out\install
37- VCPKG_DEFAULT_BINARY_CACHE : ${{github.workspace}}\bincache
38- VCPKG_BINARY_SOURCES : clear;file,${{github.workspace}}\\bincache ,readwrite
37+ VCPKG_DEFAULT_BINARY_CACHE : ${{github.workspace}}\vcpkg\binary-cache
38+ VCPKG_BINARY_SOURCES : clear;file,${{github.workspace}}\vcpkg\binary-cache ,readwrite
3939 VCPKG_FEATURE_FLAGS : binarycaching
4040
4141 defaults :
4242 run :
4343 shell : cmd
4444
4545 steps :
46- - name : 🤘 Checkout Code
46+ - name : Checkout Code
4747 uses : actions/checkout@v4 # https://github.com/actions/checkout
4848 with :
4949 submodules : recursive
5050
51- - name : 🛠️ Setup Visual Studio Developer Command Prompt
51+ - name : Create vcpkg cache dir
52+ run : mkdir ${{env.VCPKG_DEFAULT_BINARY_CACHE}}
53+
54+ - name : Setup Visual Studio Developer Command Prompt
5255 uses : ilammy/msvc-dev-cmd@v1
5356
54- - name : 🔽 Install CMake and Ninja
57+ - name : Install CMake and Ninja
5558 uses : lukka/get-cmake@latest
5659
57- - name : 🛠️ Setup vcpkg (optionally from cache)
60+ - name : Setup vcpkg (optionally from cache)
5861 uses : lukka/run-vcpkg@v11
5962
6063 - name : Configure application (Debug, Release
@@ -80,24 +83,15 @@ jobs:
8083 working-directory : ${{env.RELEASE_BUILD_DIR}}
8184 run : .\hktests-rel.exe --gtest_output=xml:hktests-rel.xml
8285
83- - name : 🔼 Upload Test Results
84- uses : actions/upload-artifact@v4 # https://github.com/actions/upload-artifact
85- if : always()
86- with :
87- name : test-results
88- path : |
89- ${{env.DEBUG_BUILD_DIR}}\hktests-dbg.xml
90- ${{env.RELEASE_BUILD_DIR}}\hktests-rel.xml
91-
92- - name : 👌 Publish Test Results
86+ - name : Publish Test Results
9387 uses : EnricoMi/publish-unit-test-result-action/windows@v2 # https://github.com/EnricoMi/publish-unit-test-result-action
9488 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
9589 with :
9690 files : |
9791 ${{env.DEBUG_BUILD_DIR}}\hktests-dbg.xml
9892 ${{env.RELEASE_BUILD_DIR}}\hktests-rel.xml
9993
100- - name : 📑 Generate CodeCoverage Report (Debug)
94+ - name : Generate CodeCoverage Report (Debug)
10195 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
10296 run : |
10397 curl -L -O https://github.com/OpenCppCoverage/OpenCppCoverage/releases/download/release-0.9.9.0/OpenCppCoverageSetup-x64-0.9.9.0.exe
@@ -112,26 +106,10 @@ jobs:
112106 -- ${{env.DEBUG_BUILD_DIR}}\hktests-dbg
113107
114108 # retry uploading to codecov with limit to workaround flaky upload issue
115- - name : 📦 🚀 Upload CodeCoverage Report to codecov.io (Debug)
109+ - name : Upload CodeCoverage Report to codecov.io (Debug)
116110 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
117111 uses : codecov/codecov-action@v5
118112 with :
119113 files : ./hikolang_coverage.xml
120114 token : ${{secrets.CODECOV_TOKEN}}
121-
122- # In the future we can do this when building dynamic libraries without whole-program-optimization.
123- #
124- # # Double ZIP issue: https://github.com/actions/upload-artifact#zipped-artifact-downloads
125- # # We can either zip an already zipped file; or send all files to a zip service, possibly creating a 503.
126- # - name: 📦 Package
127- # run: |
128- # cd build
129- # 7z a -tzip -mx9 "${{env.ARTIFACT_NAME}}.zip" ./hikogui-${{env.VERSION}}
130- #
131- # # To ensure that jobs don't overwrite existing artifacts, use a different "name" per job/run.
132- # - name: 📦 🚀 Upload Artifact
133- # uses: actions/upload-artifact@v4 # https://github.com/actions/upload-artifact
134- # with:
135- # name: ${{env.ARTIFACT_NAME}}
136- # path: build/${{env.ARTIFACT_NAME}}.zip
137-
115+
0 commit comments