2626
2727 steps :
2828 - name : Checkout
29- uses : actions/checkout@v5
29+ uses : actions/checkout@v6
3030
3131 - name : Install dependencies
3232 run : |
@@ -75,24 +75,15 @@ jobs:
7575
7676 steps :
7777 - name : Checkout
78- uses : actions/checkout@v5
78+ uses : actions/checkout@v6
7979
80- - name : Setup vcpkg caching
81- uses : actions/github-script@v8
82- with :
83- script : |
84- core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
85- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
86- core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite')
87-
88- - name : Install vcpkg
89- run : |
90- git clone https://github.com/microsoft/vcpkg
91- ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
80+ - name : Setup vcpkg
81+ id : vcpkg
82+ uses : OpenTTD/actions/setup-vcpkg@v6
9283
9384 - name : Prepare vcpkg
9485 run : |
95- ./ vcpkg/ vcpkg install --triplet=${{ matrix.arch }}-osx \
86+ ${{ steps. vcpkg.outputs. vcpkg }} install --triplet=${{ matrix.arch }}-osx \
9687 boost-bimap \
9788 boost-date-time \
9889 boost-foreach \
@@ -110,7 +101,7 @@ jobs:
110101 cmake ${GITHUB_WORKSPACE} \
111102 -DCMAKE_OSX_ARCHITECTURES=${{ matrix.full_arch }} \
112103 -DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-osx \
113- -DCMAKE_TOOLCHAIN_FILE=${GITHUB_WORKSPACE}/ vcpkg/scripts/buildsystems/vcpkg. cmake \
104+ -DCMAKE_TOOLCHAIN_FILE=${{ steps. vcpkg.outputs.vcpkg- cmake }} \
114105 # EOF
115106 echo "::endgroup::"
116107
@@ -132,25 +123,16 @@ jobs:
132123
133124 steps :
134125 - name : Checkout
135- uses : actions/checkout@v5
126+ uses : actions/checkout@v6
136127
137- - name : Setup vcpkg caching
138- uses : actions/github-script@v8
139- with :
140- script : |
141- core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
142- core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
143- core.exportVariable('VCPKG_BINARY_SOURCES', 'clear;x-gha,readwrite')
144-
145- - name : Install vcpkg
146- run : |
147- git clone https://github.com/microsoft/vcpkg
148- .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
128+ - name : Setup vcpkg
129+ id : vcpkg
130+ uses : OpenTTD/actions/setup-vcpkg@v6
149131
150132 - name : Prepare vcpkg
151133 shell : bash
152134 run : |
153- ./ vcpkg/ vcpkg install --triplet=${{ matrix.arch }}-windows-static \
135+ "${{ steps. vcpkg.outputs. vcpkg }}" install --triplet=${{ matrix.arch }}-windows-static \
154136 boost-bimap \
155137 boost-date-time \
156138 boost-foreach \
@@ -175,7 +157,7 @@ jobs:
175157 cmake .. \
176158 -GNinja \
177159 -DVCPKG_TARGET_TRIPLET=${{ matrix.arch }}-windows-static \
178- -DCMAKE_TOOLCHAIN_FILE="${GITHUB_WORKSPACE}\ vcpkg\scripts\buildsystems\vcpkg. cmake" \
160+ -DCMAKE_TOOLCHAIN_FILE="${{ steps. vcpkg.outputs.vcpkg- cmake }} " \
179161 # EOF
180162 echo "::endgroup::"
181163
0 commit comments