|
1 |
| -# This workflow uses actions that are not certified by GitHub. |
2 |
| -# They are provided by a third-party and are governed by |
3 |
| -# separate terms of service, privacy policy, and support |
4 |
| -# documentation. |
5 |
| - |
6 | 1 | name: MSBuild
|
7 | 2 |
|
8 | 3 | on:
|
9 |
| - push: |
10 |
| - branches: [ "master" ] |
11 |
| - pull_request: |
12 |
| - branches: [ "master" ] |
| 4 | + push: |
| 5 | + branches: ["master"] |
| 6 | + pull_request: |
| 7 | + branches: ["master"] |
13 | 8 |
|
14 | 9 | env:
|
15 |
| - # Path to the solution file relative to the root of the project. |
16 |
| - SOLUTION_FILE_PATH: . |
| 10 | + SOLUTION_FILE_PATH: . |
17 | 11 |
|
18 |
| - # Configuration type to build. |
19 |
| - # You can convert this to a build matrix if you need coverage of multiple configuration types. |
20 |
| - # https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix |
21 |
| - BUILD_CONFIGURATION: Release |
| 12 | + BUILD_CONFIGURATION: Release |
22 | 13 |
|
23 | 14 | permissions:
|
24 |
| - contents: read |
| 15 | + contents: read |
25 | 16 |
|
26 | 17 | jobs:
|
27 |
| - build: |
28 |
| - runs-on: windows-latest |
| 18 | + build: |
| 19 | + runs-on: windows-latest |
| 20 | + |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v3 |
29 | 23 |
|
30 |
| - steps: |
31 |
| - - uses: actions/checkout@v3 |
32 |
| - - run: powershell -command New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force |
33 |
| - - uses: actions/cache@v3 |
34 |
| - with: |
35 |
| - key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }}-${{ hashFiles('**/import_map.json') }} |
36 |
| - path: | |
| 24 | + - uses: actions/cache@v3 |
| 25 | + with: |
| 26 | + key: ${{ runner.os }}-deno-${{ hashFiles('**/deps.ts') }}-${{ hashFiles('**/import_map.json') }} |
| 27 | + path: | |
37 | 28 | ~\.deno
|
38 | 29 | ~\AppData\Local\deno
|
39 |
| - - uses: actions/cache@v3 |
40 |
| - with: |
41 |
| - path: | |
42 |
| - C:\vcpkg |
| 30 | + - uses: actions/cache@v3 |
| 31 | + with: |
| 32 | + path: | |
| 33 | + C:\vcpkg |
43 | 34 |
|
44 |
| - key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/xmake.lua') }} |
45 |
| - - uses: actions/cache@v3 |
46 |
| - with: |
47 |
| - path: | |
48 |
| - C:\Users\runneradmin\AppData\Local\.xmake |
| 35 | + key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/xmake.lua') }} |
| 36 | + - uses: actions/cache@v3 |
| 37 | + with: |
| 38 | + path: | |
| 39 | + C:\Users\runneradmin\AppData\Local\.xmake |
49 | 40 |
|
50 |
| - key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }} |
51 |
| - - name: Add MSBuild to PATH |
52 |
| - |
53 |
| - with: |
54 |
| - vs-prerelease: true |
| 41 | + key: ${{ runner.os }}-xmake-${{ hashFiles('**/xmake.lua') }} |
| 42 | + - name: Add MSBuild to PATH |
| 43 | + |
| 44 | + with: |
| 45 | + vs-prerelease: true |
55 | 46 |
|
56 |
| - - name: vcpkg-action |
| 47 | + - name: vcpkg-action |
57 | 48 |
|
58 |
| - uses: johnwason/vcpkg-action@v4 |
59 |
| - with: |
60 |
| - triplet: x64-windows-release |
61 |
| - pkgs: "gtest cppunit" |
| 49 | + uses: johnwason/vcpkg-action@v4 |
| 50 | + with: |
| 51 | + triplet: x64-windows-release |
| 52 | + pkgs: "gtest cppunit" |
62 | 53 |
|
63 |
| - token: ${{ github.token }} |
64 |
| - - name: Setup Deno |
| 54 | + token: ${{ github.token }} |
| 55 | + - name: Setup Deno |
65 | 56 |
|
66 |
| - |
67 |
| - with: |
68 |
| - deno-version: v1.33.1 |
69 |
| - - run: deno task cache |
70 |
| - - uses: xmake-io/github-action-setup-xmake@v1 |
71 |
| - with: |
72 |
| - xmake-version: branch@dev |
73 |
| - actions-cache-folder: ".xmake-cache" |
74 |
| - - run: deno run -A xmake.ts |
| 57 | + |
| 58 | + with: |
| 59 | + deno-version: v1.33.1 |
| 60 | + - run: deno task cache |
| 61 | + - uses: xmake-io/github-action-setup-xmake@v1 |
| 62 | + with: |
| 63 | + xmake-version: branch@dev |
| 64 | + actions-cache-folder: ".xmake-cache" |
| 65 | + - run: deno run -A xmake.ts |
0 commit comments