Skip to content

Commit

Permalink
chores: update build workflow to use MSYS2 for running build script
Browse files Browse the repository at this point in the history
  • Loading branch information
HomeArchbishop committed Jul 28, 2024
1 parent 5fd42be commit 5c3c381
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ jobs:
- name: Check out code
uses: actions/checkout@v2

- name: Run build script in Ubuntu container
uses: addnab/docker-run-action@v3
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
image: ubuntu:latest
options: --entrypoint "/bin/bash"
run: |
apt-get update
apt-get install -y build-essential
sh scripts/build.sh
update: true
install: git, unzip, zip, tar

- name: Run build script in Git Bash
shell: msys2 {0}
run: |
pacman -Syu --noconfirm
pacman -S --noconfirm base-devel
sh scripts/build.sh
- name: Zip dist folder
run: Compress-Archive -Path .\dist\* -DestinationPath .\dist.zip
Expand Down

0 comments on commit 5c3c381

Please sign in to comment.