[WORKFLOW]: CI Update
This commit is contained in:
34
.github/workflows/ci.yaml
vendored
34
.github/workflows/ci.yaml
vendored
@ -7,7 +7,7 @@ on:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build-all:
|
||||
build-linux-wasm:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@ -17,7 +17,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target: [linux-x64, linux-arm64, windows-x64, windows-arm64, wasm]
|
||||
target: [linux-x64, linux-arm64, wasm]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@ -27,3 +27,33 @@ jobs:
|
||||
- name: Build
|
||||
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
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user