Windows MSWin Build Tools #1081
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows MSWin Build Tools | |
on: | |
push: | |
branches: | |
- '*' | |
schedule: | |
- cron: '30 7 * * *' | |
workflow_dispatch: | |
jobs: | |
mswin: | |
name: >- | |
mswin vcpkg tools | |
#env: | |
# FORCE_UPDATE: true | |
runs-on: windows-2022 | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: mswin | |
timeout-minutes: 5 | |
- name: update vcpkg installation | |
run: | | |
$env:VCPKG_ROOT = $env:VCPKG_INSTALLATION_ROOT | |
echo "::group::————————————— git pull —————————————" | |
cd $env:VCPKG_INSTALLATION_ROOT | |
# --depth=1 may cause 'fatal: refusing to merge unrelated histories' | |
git pull --no-tags -q --depth=1000 | |
echo ::endgroup:: | |
echo "`n———————————— commit info ————————————" | |
git log -1 --pretty=format:'%H %cs%n%n' | |
./bootstrap-vcpkg.bat | |
timeout-minutes: 15 | |
- name: Update mswin tools 7z and Upload | |
run: ruby create_mswin_pkg.rb | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
timeout-minutes: 30 |