From 49ba21032efc4911ea78eeaf3ec06e784d8a8d88 Mon Sep 17 00:00:00 2001 From: pvictress <185700473+pvictress@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:11:24 +0300 Subject: [PATCH] Optimize main.yml --- .github/workflows/main.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 64f5f82..ea57402 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,11 +32,6 @@ jobs: export LATEST_COMMIT=$(git rev-parse HEAD) echo "LATEST_COMMIT=$LATEST_COMMIT" >> $GITHUB_ENV - - name: Update builtin-baseline in vcpkg.json - shell: bash - run: | - jq --arg commit "$LATEST_COMMIT" '. + {"builtin-baseline": $commit}' vcpkg.json > temp.json && mv temp.json vcpkg.json - - name: Install vcpkg run: | .\vcpkg\bootstrap-vcpkg.bat @@ -50,7 +45,9 @@ jobs: - name: Install Dependencies with vcpkg run: | - .\vcpkg\vcpkg.exe install sdl2 sdl2-mixer[libflac,libmodplug,mpg123,opusfile] sdl2-net libsamplerate fluidsynth --triplet x64-windows-static-release --overlay-triplets=cmake/triplets + .\vcpkg\vcpkg.exe install sdl2 sdl2-mixer[libflac,libmodplug,mpg123,opusfile] sdl2-net libsamplerate fluidsynth ` + --triplet x64-windows-static-release ` + --overlay-triplets=cmake/triplets - name: Configure CMake run: | @@ -62,7 +59,7 @@ jobs: -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}\vcpkg\scripts\buildsystems\vcpkg.cmake - name: Build - run: cmake --build build_vs_64 --config Release + run: cmake --build build_vs_64 --config Release --parallel - name: Upload artifact uses: actions/upload-artifact@v4