From 006d2b4ac5341a588526ddf5417c3a0a506cdd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Barto=C5=88?= Date: Wed, 7 Feb 2024 10:29:41 +0100 Subject: [PATCH] Add workflow checking that deployed repository can produce "Hello World!" executable --- .github/scripts/install-toolchain.sh | 8 ++++++++ .github/workflows/check-repository.yml | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100755 .github/scripts/install-toolchain.sh create mode 100644 .github/workflows/check-repository.yml diff --git a/.github/scripts/install-toolchain.sh b/.github/scripts/install-toolchain.sh new file mode 100755 index 0000000..b4b90aa --- /dev/null +++ b/.github/scripts/install-toolchain.sh @@ -0,0 +1,8 @@ +pacman -Syu --noconfirm + +cat "[woarm64] + Server = https://windows-on-arm-experiments.github.io/msys2-woarm64-build/$arch + SigLevel = Optional" >> /etc/pacman.conf + +pacman -Sy +pacman -S mingw-w64-cross-gcc diff --git a/.github/workflows/check-repository.yml b/.github/workflows/check-repository.yml new file mode 100644 index 0000000..54e597f --- /dev/null +++ b/.github/workflows/check-repository.yml @@ -0,0 +1,24 @@ +name: Check MSYS2 repository + +on: + workflow_dispatch: + +jobs: + check-repository: + runs-on: ubuntu-latest + steps: + - uses: msys2/setup-msys2@v2 + with: + msystem: MSYS + location: ${{ github.workspace }} + release: true + update: true + cache: false + install: base-devel + + - name: Checkout repository + uses: actions/checkout@v4 + + - shell: msys2 {0} + run: | + .github/workflows/install-toolchain.sh