Skip to content

Commit

Permalink
Switch to official MSYS GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Aug 1, 2020
1 parent 7695885 commit 59cb7e1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@ jobs:
build:
runs-on: windows-latest

defaults:
run:
shell: msys2 {0}

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Setup MSYS2 environment
uses: numworks/setup-msys2@v1
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
update: true

# Update again. Needed to actually get all updates.
- name: Update MSYS2
run: msys2do pacman --noconfirm -Syuu

- name: Install packages for dependencies
run: msys2do pacman --noconfirm -S --needed mingw-w64-i686-gcc automake autoconf pkg-config make zip patch tar
install: mingw-w64-i686-gcc automake autoconf pkg-config make zip patch tar

- name: Build binaries
run: msys2do make -j2 MAKE="make -j2"
run: make -j2 MAKE="make -j2"

- uses: actions/upload-artifact@v2
with:
Expand All @@ -34,7 +32,7 @@ jobs:
- uses: nuget/setup-nuget@v1

- name: Build NuGet package
run: msys2do make nuget
run: make nuget

- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 59cb7e1

Please sign in to comment.