Skip to content

Add MINGWARM64 environment #1

Add MINGWARM64 environment

Add MINGWARM64 environment #1

Workflow file for this run

name: PKGBUILD
on:
workflow_call:
inputs:
name:
description: 'Name of the package/tool, to be appended to artifact names.'
required: true
type: string
matrix:
description: 'JSON list of systems to build and test the tool on.'
required: true
type: string
path:
description: 'Location of the PKGBUILD recipe, relative to the root of the repository.'
required: true
type: string
test:
description: 'Commands to test the tool after installing the package.'
required: true
type: string
jobs:
win-makepkg:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(inputs.matrix) }}
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@v4
with:
fetch-depth: 0
- name: '${{ matrix.icon }} Setup MSYS2'
uses: Windows-on-ARM-Experiments/setup-msys2@main
with:
msystem: ${{ matrix.sys }}
update: true
install: git base-devel tree
pacboy: toolchain:p
- name: '🚧 Build package'
run: |
cd ${{ inputs.path }}
makepkg-mingw --noconfirm --noprogressbar -sCLf
- name: 'πŸ“€ Upload artifact: package'
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.sys }}-${{ inputs.name }}
path: ${{ inputs.path }}/*.zst
- name: 'πŸ” Show package content'
run: |
mkdir tmp
cd tmp
tar -xf ../${{ inputs.path }}/*.zst
tree .
win-test:
needs: win-makepkg
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: ${{ fromJson(inputs.matrix) }}
name: 🚦${{ matrix.icon }} ${{ matrix.sys }} | test
defaults:
run:
shell: msys2 {0}
steps:
- name: '${{ matrix.icon }} Setup MSYS2'
uses: Windows-on-ARM-Experiments/setup-msys2
with:
msystem: ${{ matrix.sys }}
update: true
- name: 'πŸ“₯ Download artifact: package'
uses: actions/download-artifact@v4
with:
path: .
name: ${{ matrix.sys }}-${{ inputs.name }}
- name: 'πŸ› οΈ Install package'
run: pacman -U --noconfirm --noprogressbar *.zst
- name: '🚦 Test package'
run: ${{ inputs.test }}