diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 1abd005d06131..e041cb80b391c 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -36,14 +36,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg run: | git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics + sudo apt-get install -y --no-install-recommends mono-complete + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + sources add \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -StorePasswordInClearText \ + -Name GitHubPackages \ + -UserName "${{ github.repository_owner }}" \ + -Password "${{ github.token }}" + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + setapikey "${{ github.token }}" \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install dependencies run: | diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 2a0cd004287e2..d65cf6ba2f461 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -38,14 +38,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg run: | git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics + brew install mono + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + sources add \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -StorePasswordInClearText \ + -Name GitHubPackages \ + -UserName "${{ github.repository_owner }}" \ + -Password "${{ github.token }}" + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + setapikey "${{ github.token }}" \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install OpenGFX run: | diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 789017bdb92a8..f8c6b742873a2 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -24,14 +24,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg + shell: pwsh run: | - git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}\vcpkg - ${{ runner.temp }}\vcpkg\bootstrap-vcpkg.bat -disableMetrics + git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg + ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.bat -disableMetrics + .$(${{ runner.temp }}/vcpkg/vcpkg fetch nuget) ` + sources add ` + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" ` + -StorePasswordInClearText ` + -Name GitHubPackages ` + -UserName "${{ github.repository_owner }}" ` + -Password "${{ github.token }}" + .$(${{ runner.temp }}/vcpkg/vcpkg fetch nuget) ` + setapikey "${{ github.token }}" ` + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install OpenGFX shell: bash diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1922f63b5f96b..1184a6a912dd5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -21,6 +21,7 @@ jobs: actions: read contents: read security-events: write + packages: write steps: - name: Checkout @@ -30,14 +31,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg run: | git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics + sudo apt-get install -y --no-install-recommends mono-complete + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + sources add \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -StorePasswordInClearText \ + -Name GitHubPackages \ + -UserName "${{ github.repository_owner }}" \ + -Password "${{ github.token }}" + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + setapikey "${{ github.token }}" \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install dependencies run: | diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index d6f79057d26b8..2d921ab872b5c 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -39,9 +39,7 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install dependencies run: | @@ -50,6 +48,7 @@ jobs: # autoconf-archive is needed to build ICU. yum install -y \ autoconf-archive \ + mono-complete \ perl-IPC-Cmd \ wget \ zip \ @@ -121,6 +120,16 @@ jobs: ( cd /vcpkg ./bootstrap-vcpkg.sh -disableMetrics + mono $(./vcpkg fetch nuget | tail -n 1) \ + sources add \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -StorePasswordInClearText \ + -Name GitHubPackages \ + -UserName "${{ github.repository_owner }}" \ + -Password "${{ github.token }}" + mono $(./vcpkg fetch nuget | tail -n 1) \ + setapikey "${{ github.token }}" \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" ) echo "::group::Install breakpad dependencies" diff --git a/.github/workflows/release-macos.yml b/.github/workflows/release-macos.yml index a5219a0b69f90..c182abff88bb9 100644 --- a/.github/workflows/release-macos.yml +++ b/.github/workflows/release-macos.yml @@ -41,14 +41,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg run: | git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.sh -disableMetrics + brew install mono + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + sources add \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -StorePasswordInClearText \ + -Name GitHubPackages \ + -UserName "${{ github.repository_owner }}" \ + -Password "${{ github.token }}" + mono $(${{ runner.temp }}/vcpkg/vcpkg fetch nuget | tail -n 1) \ + setapikey "${{ github.token }}" \ + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install dependencies env: diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml index d47b3645e5d07..42f7bc0ffd775 100644 --- a/.github/workflows/release-windows.yml +++ b/.github/workflows/release-windows.yml @@ -49,14 +49,23 @@ jobs: uses: actions/github-script@v7 with: script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite') + core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;nuget,https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json,readwrite') - name: Install vcpkg + shell: pwsh run: | - git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}\vcpkg - ${{ runner.temp }}\vcpkg\bootstrap-vcpkg.bat -disableMetrics + git clone https://github.com/microsoft/vcpkg ${{ runner.temp }}/vcpkg + ${{ runner.temp }}/vcpkg/bootstrap-vcpkg.bat -disableMetrics + .$(${{ runner.temp }}/vcpkg/vcpkg fetch nuget) ` + sources add ` + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" ` + -StorePasswordInClearText ` + -Name GitHubPackages ` + -UserName "${{ github.repository_owner }}" ` + -Password "${{ github.token }}" + .$(${{ runner.temp }}/vcpkg/vcpkg fetch nuget) ` + setapikey "${{ github.token }}" ` + -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" - name: Install dependencies shell: bash