Skip to content

Commit

Permalink
add vcpkg install
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceshi committed Nov 18, 2023
1 parent 4d30ca4 commit 6b5a3d4
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,30 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Clone source
- uses: actions/cache@v3
with:
path: |
VCPKG_DEFAULT_BINARY_CACHE
%LOCALAPPDATA%\vcpkg\archives
%APPDATA%\vcpkg\archives
key: ${{ runner.os }}-vcpkg-bin-cache

- name: Build ANGLE
working-directory: ${{github.workspace}}
shell: pwsh
run: |
vcpkg
run: vcpkg install angle:x64-windows-static

- name: Export ANGLE
working-directory: ${{github.workspace}}
shell: pwsh
run: vcpkg export angle:x64-windows-static --raw --output-dir=. --output=angle-x64-windows-static

- name: Package ANGLE
working-directory: ${{github.workspace}}
shell: pwsh
run: 7z a -y -mx9 angle-x64-windows-static.7z ./angle-x64-windows-static/

- uses: actions/upload-artifact@v3
with:
name: angle-x64-windows-static
path: angle-x64-windows-static.7z

0 comments on commit 6b5a3d4

Please sign in to comment.