@@ -2,16 +2,19 @@ name: Test CI
22
33on :
44 push :
5- branches : [ "main", "master" ]
5+ branches : ["main", "master"]
66 pull_request :
7- branches : [ "main", "master" ]
7+ branches : ["main", "master"]
88 workflow_dispatch :
99
1010permissions :
1111 contents : read
1212 packages : write
1313
1414jobs :
15+ #
16+ # linux
17+ #
1518 linux-prepare :
1619 name : Prepare Linux Container
1720 runs-on : ubuntu-latest
@@ -31,29 +34,18 @@ jobs:
3134 - uses : actions/checkout@v4
3235 with :
3336 submodules : recursive
34-
37+
3538 - name : Setup Linux Env
3639 uses : ./.github/actions/setup-linux
3740
38- # - name: Create vcpkg-archives
39- # run: mkdir -p vcpkg-archives
40-
41- # - name: Cache vcpkg artifacts
42- # uses: actions/cache@v4
43- # with:
44- # path: vcpkg-archives
45- # key: vcpkg-archives-linux-${{ hashFiles('vcpkg.json') }}
46- # restore-keys: |
47- # vcpkg-archives-linux-
48-
4941 - name : Cache vcpkg installed
5042 uses : actions/cache@v4
5143 with :
52- path : |
53- out/build/ci-linux-${{ matrix.compiler }}-release/vcpkg_installed
54- key : vcpkg-installed-linux-${{ matrix.compiler }}-${{ hashFiles('vcpkg.json') }}
55- restore-keys : |
56- vcpkg-installed-linux-${{ matrix.compiler }}-
44+ path : |
45+ out/build/ci-linux-${{ matrix.compiler }}-release/vcpkg_installed
46+ key : vcpkg-installed-linux-${{ matrix.compiler }}-${{ hashFiles('vcpkg.json') }}
47+ restore-keys : |
48+ vcpkg-installed-linux-${{ matrix.compiler }}-
5749
5850 - name : Configure
5951 uses : ./.github/actions/run-linux
@@ -75,18 +67,13 @@ jobs:
7567 - name : Fix permissions
7668 if : always()
7769 run : sudo chown -R $(id -u):$(id -g) out/build
78-
79- windows-prepare :
80- name : Prepare Windows
81- runs-on : windows-latest
82- steps :
83- - uses : actions/checkout@v4
84- - name : Prepare Windows Env (Warmup Cache)
85- uses : ./.github/actions/prepare-windows
70+
71+ #
72+ # windows
73+ #
8674
8775 windows-test :
8876 name : Windows Test (${{ matrix.compiler }})
89- needs : windows-prepare
9077 runs-on : windows-latest
9178 strategy :
9279 fail-fast : false
10087
10188 - uses : actions/setup-python@v5
10289 with :
103- python-version : ' 3.x'
104- cache : ' pip'
105- cache-dependency-path : ' .github/requirements.txt'
90+ python-version : " 3.x"
91+ cache : " pip"
92+ cache-dependency-path : " .github/requirements.txt"
10693
10794 - name : Install CMake & Ninja
10895 shell : pwsh
@@ -118,22 +105,6 @@ jobs:
118105 # shell: pwsh
119106 # run: New-Item -ItemType Directory -Force -Path vcpkg-archives
120107
121- # - name: Cache vcpkg artifacts
122- # uses: actions/cache@v4
123- # with:
124- # path: vcpkg-archives
125- # key: vcpkg-archives-windows-${{ hashFiles('vcpkg.json') }}
126- # restore-keys: |
127- # vcpkg-archives-windows-
128-
129- - name : Cache vcpkg installed
130- uses : actions/cache@v4
131- with :
132- path : out/build/ci-windows-*/vcpkg_installed
133- key : vcpkg-installed-windows-${{ hashFiles('vcpkg.json') }}
134- restore-keys : |
135- vcpkg-installed-windows-
136-
137108 - name : Configure
138109 shell : pwsh
139110 run : |
0 commit comments