mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-10 20:43:22 -04:00
ci(macos): use vcpkg
Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
parent
9210d68ed1
commit
4614d683b3
@ -42,6 +42,8 @@ runs:
|
|||||||
- name: Setup macOS dependencies
|
- name: Setup macOS dependencies
|
||||||
if: ${{ runner.os == 'macOS' }}
|
if: ${{ runner.os == 'macOS' }}
|
||||||
uses: ./.github/actions/setup-dependencies/macos
|
uses: ./.github/actions/setup-dependencies/macos
|
||||||
|
with:
|
||||||
|
build-type: ${{ inputs.build-type }}
|
||||||
|
|
||||||
- name: Setup Windows dependencies
|
- name: Setup Windows dependencies
|
||||||
if: ${{ runner.os == 'Windows' }}
|
if: ${{ runner.os == 'Windows' }}
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
name: Setup macOS dependencies
|
name: Setup macOS dependencies
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
build-type:
|
||||||
|
description: Type for the build
|
||||||
|
required: true
|
||||||
|
default: Debug
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
|
|
||||||
@ -14,3 +20,29 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "JAVA_HOME=$(/usr/libexec/java_home -v 17)" >> "$GITHUB_ENV"
|
echo "JAVA_HOME=$(/usr/libexec/java_home -v 17)" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Setup vcpkg cache
|
||||||
|
if: ${{ inputs.build-type == 'Debug' }}
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
USERNAME: ${{ github.repository_owner }}
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
FEED_URL: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
|
||||||
|
run: |
|
||||||
|
mono `vcpkg fetch nuget | tail -n 1` \
|
||||||
|
sources add \
|
||||||
|
-Source "$FEED_URL" \
|
||||||
|
-StorePasswordInClearText \
|
||||||
|
-Name GitHubPackages \
|
||||||
|
-UserName "$USERNAME" \
|
||||||
|
-Password "$GITHUB_TOKEN"
|
||||||
|
mono `vcpkg fetch nuget | tail -n 1` \
|
||||||
|
setapikey "$GITHUB_TOKEN" \
|
||||||
|
-Source "$FEED_URL"
|
||||||
|
echo "VCPKG_BINARY_SOURCES=clear;nuget,$FEED_URL,readwrite" >> "$GITHUB_ENV"
|
||||||
|
|
||||||
|
- name: Setup vcpkg environment
|
||||||
|
if: ${{ inputs.build-type == 'Debug' }}
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "CMAKE_TOOLCHAIN_FILE=$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" >> "$GITHUB_ENV"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user