[WORKFLOW]: CI Update
This commit is contained in:
49
.github/workflows/ci.yaml
vendored
49
.github/workflows/ci.yaml
vendored
@ -32,52 +32,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build --preset ${{ matrix.target }} --config Release
|
run: cmake --build --preset ${{ matrix.target }} --config Release
|
||||||
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-2022
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
target: [windows-x64, windows-arm64]
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
|
||||||
with:
|
|
||||||
arch: x64
|
|
||||||
|
|
||||||
- name: Add Clang to PATH
|
|
||||||
run: echo "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\x64\bin" >> $env:GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Upload Error Log
|
|
||||||
if: always() # Run even if the build failed
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: error-log
|
|
||||||
path: D:\a\IACore\IACore\out\build\windows-x64\vcpkg_installed\vcpkg\blds\detect_compiler\config-windows-x64-clang-out.log
|
|
||||||
|
|
||||||
- name: Setup VCPKG
|
|
||||||
run: |
|
|
||||||
git clone https://github.com/microsoft/vcpkg.git C:/vcpkg
|
|
||||||
C:/vcpkg/bootstrap-vcpkg.bat
|
|
||||||
echo "VCPKG_ROOT=C:/vcpkg" >> $env:GITHUB_ENV
|
|
||||||
|
|
||||||
- uses: ilammy/setup-nasm@v1
|
|
||||||
|
|
||||||
- name: Cache vcpkg
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: out/build/${{ matrix.target }}/vcpkg_installed
|
|
||||||
key: vcpkg-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('vcpkg.json') }}
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
|
|
||||||
cmake --preset ${{ matrix.target }}
|
|
||||||
cmake --build --preset ${{ matrix.target }} --config Debug
|
|
||||||
|
|
||||||
- name: Setup tmate session
|
|
||||||
if: failure()
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,12 @@
|
|||||||
"builtin-baseline": "37dcabc43809a960f41758e00e615cc6e26e8bbf",
|
"builtin-baseline": "37dcabc43809a960f41758e00e615cc6e26e8bbf",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"openssl",
|
"openssl",
|
||||||
"zlib-ng",
|
"zstd",
|
||||||
"zstd"
|
{
|
||||||
|
"name": "zlib-ng",
|
||||||
|
"features": [
|
||||||
|
"compat"
|
||||||
|
]
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user