Skip to content

Commit

Permalink
Optimize main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictress committed Jan 5, 2025
1 parent 231a66d commit 49ba210
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand All @@ -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
Expand Down

0 comments on commit 49ba210

Please sign in to comment.