Skip to content

Merge remote-tracking branch 'origin/vcpkg-fix' #25752

Merge remote-tracking branch 'origin/vcpkg-fix'

Merge remote-tracking branch 'origin/vcpkg-fix' #25752

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