Skip to content

Commit

Permalink
Release with clang-cl
Browse files Browse the repository at this point in the history
  • Loading branch information
netheril96 committed Apr 18, 2024
1 parent cd37adc commit e1d300b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ccpp.yml
Expand Up @@ -99,7 +99,7 @@ jobs:
name: securefs-macos-arm64

build-windows:
runs-on: windows-latest
runs-on: windows-2019
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
Expand All @@ -120,7 +120,7 @@ jobs:
cache-key: windows-latest
github-binarycache: true
- name: build-test
run: python3 build.py --clang_cl --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-windows-static-md --build_root=./build --build_type Debug
run: python3 build.py --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-windows-static-md --build_root=./build --build_type Debug
- name: upload
uses: actions/upload-artifact@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -116,7 +116,7 @@ jobs:
name: securefs-macos-arm64-release

build-windows:
runs-on: windows-2019
runs-on: windows-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v4
Expand All @@ -141,7 +141,7 @@ jobs:
ref: '${{ steps.get-latest-vcpkg-release.outputs.tag_name }}'
fetch-depth: 1
- name: build-test
run: python3 build.py --lto --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-windows-static-md --build_root=./build
run: python3 build.py --clang_cl --lto --enable_unit_test --enable_integration_test --vcpkg_root=${{ github.workspace }}/vcpkg --triplet=x64-windows-static-md --build_root=./build
- name: upload
uses: actions/upload-artifact@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions overlay_triplets/x64-windows-static-md.cmake
@@ -1,6 +1,6 @@
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_C_FLAGS_RELEASE "/GL")
set(VCPKG_CXX_FLAGS_RELEASE "/GL")
set(VCPKG_C_FLAGS_RELEASE "-flto=thin")
set(VCPKG_CXX_FLAGS_RELEASE "-flto=thin")
set(VCPKG_BUILD_TYPE release)

0 comments on commit e1d300b

Please sign in to comment.