Skip to content

Commit

Permalink
Update compile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
deni2312 committed Apr 18, 2024
1 parent eaa99b1 commit a3e4906
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@

name: compile
on: [push]
jobs:
compile-windows:
runs-on: windows-latest
steps:
- name: Export GitHub Actions cache environment variables
uses: actions/github-script@v6
with:
script: |
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- name: Check out repository code
uses: actions/checkout@v2
- run: .\\vcpkg integrate install
- run: .\\vcpkg install
- run: git clone https://github.com/Microsoft/vcpkg.git
- run: .\\vcpkg\\bootstrap-vcpkg.bat
- run: .\\vcpkg\\vcpkg integrate install
- run: .\\vcpkg\\vcpkg install
- run: mkdir build
- run: cmake -B build/ -S . -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake
- run: cmake --build build/
- run: cmake -B build/ -S . -DCMAKE_TOOLCHAIN_FILE=\.\vcpkg\\scripts\\buildsystems\\vcpkg.cmake
- run: cmake --build build\\
- run: echo ""

0 comments on commit a3e4906

Please sign in to comment.