Merge remote-tracking branch 'origin/vcpkg-fix' #25761
This file contains 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: MSYS2 Package Build Test | |
on: | |
push: | |
pull_request: | |
release: | |
types: [published] | |
schedule: | |
- cron: "0 0 * * 3" | |
workflow_dispatch: | |
jobs: | |
win-makepkg: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { icon: "π¦", sys: mingw64, env: x86_64 } | |
name: π§${{ matrix.icon }} ${{ matrix.sys }} | makepkg | |
defaults: | |
run: | |
shell: msys2 {0} | |
env: | |
MINGW_ARCH: ${{ matrix.sys }} | |
steps: | |
- name: "βοΈ git config" | |
run: git config --global core.autocrlf input | |
shell: bash | |
- name: "π§° Checkout" | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: "${{ matrix.icon }} Setup MSYS2" | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{ matrix.sys }} | |
update: true | |
install: > | |
git | |
base-devel | |
tree | |
mingw-w64-${{ matrix.env }}-toolchain | |
- name: "π§ Build package" | |
run: | | |
cd ./pkgbuild/msys2/across-dev-git/ | |
makepkg-mingw --noconfirm --noprogressbar -sCLf | |
- name: Export Package Name | |
run: echo "across_package_name=$(ls pkgbuild/msys2/across-dev-git/ | grep pkg.tar.zst)" >> $GITHUB_ENV | |
- name: "π€ Upload artifact: package" | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ env.across_package_name }} | |
path: ./pkgbuild/msys2/across-dev-git/*${{ matrix.env }}*.zst | |
- name: "π Show package content" | |
run: | | |
mkdir tmp | |
cd tmp | |
sha256sum ../pkgbuild/msys2/across-dev-git/*.zst | |
tar -xf ../pkgbuild/msys2/across-dev-git/*.zst | |
tree . | |
cd ../ | |
rmdir ./tmp --ignore-fail-on-non-empty |