mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +02:00
Merge pull request from tenacityteam/emabrey/gh-token-perms
Fix vcpkg issues on CI Signed-off-by: Emily Mabrey <emabrey@tenacityaudio.org> Reference-to: https://github.com/tenacityteam/tenacity/pull/617
This commit is contained in:
commit
35f233933f
55
.github/workflows/cmake_build.yml
vendored
55
.github/workflows/cmake_build.yml
vendored
@ -11,6 +11,20 @@ defaults:
|
|||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
# See https://docs.github.com/en/rest/reference/permissions-required-for-github-apps
|
||||||
|
# for information on what these individual permissions represent/control
|
||||||
|
permissions:
|
||||||
|
actions: none
|
||||||
|
checks: none
|
||||||
|
contents: read
|
||||||
|
deployments: none
|
||||||
|
issues: none
|
||||||
|
packages: read
|
||||||
|
pull-requests: none
|
||||||
|
repository-projects: none
|
||||||
|
security-events: none
|
||||||
|
statuses: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
skip_test:
|
skip_test:
|
||||||
@ -18,16 +32,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
actions: write
|
actions: write
|
||||||
checks: read
|
|
||||||
contents: read
|
|
||||||
deployments: read
|
|
||||||
issues: read
|
|
||||||
discussions: read
|
|
||||||
packages: read
|
|
||||||
pull-requests: read
|
|
||||||
repository-projects: read
|
|
||||||
security-events: read
|
|
||||||
statuses: read
|
|
||||||
outputs:
|
outputs:
|
||||||
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
steps:
|
steps:
|
||||||
@ -46,6 +50,8 @@ jobs:
|
|||||||
if: ${{ needs.skip_test.outputs.should_skip != 'true' }}
|
if: ${{ needs.skip_test.outputs.should_skip != 'true' }}
|
||||||
name: ${{ matrix.config.name }}
|
name: ${{ matrix.config.name }}
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -108,7 +114,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
|
|
||||||
AUDACITY_ARCH_LABEL: ${{ matrix.config.arch }}
|
AUDACITY_ARCH_LABEL: ${{ matrix.config.arch }}
|
||||||
MACOSX_DEPLOYMENT_TARGET: 10.12
|
|
||||||
|
|
||||||
# CMake settings
|
# CMake settings
|
||||||
CMAKE_BUILD_TYPE: MinSizeRel
|
CMAKE_BUILD_TYPE: MinSizeRel
|
||||||
@ -198,11 +203,7 @@ jobs:
|
|||||||
rm ./nuget.config
|
rm ./nuget.config
|
||||||
nuget sources add -Name tenacityteam_github_auto -Source https://nuget.pkg.github.com/tenacityteam/index.json -Username tenacityteam -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText -ForceEnglishOutput -NonInteractive
|
nuget sources add -Name tenacityteam_github_auto -Source https://nuget.pkg.github.com/tenacityteam/index.json -Username tenacityteam -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText -ForceEnglishOutput -NonInteractive
|
||||||
nuget setapikey ${{ secrets.GITHUB_TOKEN }} -Source tenacityteam_github_auto -ForceEnglishOutput -NonInteractive
|
nuget setapikey ${{ secrets.GITHUB_TOKEN }} -Source tenacityteam_github_auto -ForceEnglishOutput -NonInteractive
|
||||||
if [[ ${{ github.event_name }} == 'push' ]]; then
|
echo "VCPKG_BINARY_SOURCES=clear;nuget,tenacityteam_github_auto,readwrite;" >> ${GITHUB_ENV}
|
||||||
echo "VCPKG_BINARY_SOURCES=clear;nuget,tenacityteam_github_auto,readwrite;" >> ${GITHUB_ENV}
|
|
||||||
else
|
|
||||||
echo "VCPKG_BINARY_SOURCES=clear;nuget,tenacityteam_github_auto,read;" >> ${GITHUB_ENV}
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: "[Linux] Install dependencies"
|
- name: "[Linux] Install dependencies"
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
@ -245,18 +246,12 @@ jobs:
|
|||||||
iwr -useb get.scoop.sh | iex
|
iwr -useb get.scoop.sh | iex
|
||||||
scoop install sccache
|
scoop install sccache
|
||||||
|
|
||||||
# Cache the vcpkg cache and the vcpkg executable to avoid bootstrapping each time
|
# Cache the vcpkg executable to avoid bootstrapping each time
|
||||||
- name: Setup vcpkg cache
|
- name: "Setup vcpkg executable cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: ${{ github.workspace }}/vcpkg/vcpkg${{ env.EXE_SUFFIX }}
|
||||||
${{ github.workspace }}/vcpkg/vcpkg${{ env.EXE_SUFFIX }}
|
key: ${{ matrix.config.id }}-${{ env.VCPKG_COMMIT }}
|
||||||
${{ env.VCPKG_CACHE_PATH }}
|
|
||||||
key: ${{ matrix.config.id }}-${{ hashFiles('**/vcpkg.json') }}-${{ env.VCPKG_COMMIT }}-${{ github.run_number }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ matrix.config.id }}-${{ hashFiles(' **/vcpkg.json') }}-${{ env.VCPKG_COMMIT }}-
|
|
||||||
${{ matrix.config.id }}-${{ hashFiles(' **/vcpkg.json') }}-
|
|
||||||
${{ matrix.config.id }}-
|
|
||||||
|
|
||||||
- name: "[Linux/macOS] Set up wxWidgets cache"
|
- name: "[Linux/macOS] Set up wxWidgets cache"
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -275,7 +270,7 @@ jobs:
|
|||||||
git clone --recurse-submodules ${{ env.WX_GIT_URL }}
|
git clone --recurse-submodules ${{ env.WX_GIT_URL }}
|
||||||
cd wxWidgets
|
cd wxWidgets
|
||||||
git checkout ${{ env.WX_GIT_REF }}
|
git checkout ${{ env.WX_GIT_REF }}
|
||||||
cmake -S . -B cmake_build -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -D CMAKE_INSTALL_PREFIX=${{ env.WX_INSTALL_DIR }}
|
cmake -S . -B cmake_build -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -D CMAKE_INSTALL_PREFIX=${{ env.WX_INSTALL_DIR }} -D CMAKE_OSX_DEPLOYMENT_TARGET=10.12
|
||||||
cmake --build cmake_build
|
cmake --build cmake_build
|
||||||
cmake --install cmake_build
|
cmake --install cmake_build
|
||||||
|
|
||||||
@ -326,6 +321,8 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: vcpkg-logs-${{ runner.os }}
|
name: vcpkg-logs-${{ matrix.config.id }}
|
||||||
path: ${{ github.workspace }}/vcpkg/buildtrees/**/*.log
|
path: |
|
||||||
|
${{ github.workspace }}/vcpkg/buildtrees/**/*.log
|
||||||
|
${{ github.workspace }}/build/vcpkg-bootstrap.log
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
2
vcpkg
2
vcpkg
@ -1 +1 @@
|
|||||||
Subproject commit 9c84b3970064eaedb405990797d79a93186b1e08
|
Subproject commit dd587d4de0ad718cab6bdcdb5e34e26d5e31495c
|
Loading…
x
Reference in New Issue
Block a user