Skip to content

Commit

Permalink
Add build of mingw-w64-cross-zlib to main.yml and build.sh (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Jul 22, 2024
1 parent 46d324f commit 5974c1f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/scripts/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ARGUMENTS="--syncdeps \
--noconfirm \
--noprogressbar \
--nocheck \
--skippgpcheck \
--force \
$([ "$NO_EXTRACT" = 1 ] && echo "--noextract" || echo "") \
$([ "$CLEAN_BUILD" = 1 ] && echo "--cleanbuild" || echo "") \
Expand All @@ -23,7 +24,7 @@ ARGUMENTS="--syncdeps \
ccache -svv || true

if [[ "$PACKAGE_REPOSITORY" == *MINGW* ]]; then
makepkg-mingw $ARGUMENTS --skippgpcheck
makepkg-mingw $ARGUMENTS
else
makepkg $ARGUMENTS
fi
Expand Down
29 changes: 26 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
[
mingw-w64-cross-headers,
mingw-w64-cross-binutils,
mingw-w64-cross-gcc-stage1,
mingw-w64-cross-gcc-stage1
]
uses: ./.github/workflows/build-package.yml
with:
Expand All @@ -69,7 +69,7 @@ jobs:
mingw-w64-cross-headers,
mingw-w64-cross-binutils,
mingw-w64-cross-gcc-stage1,
mingw-w64-cross-crt,
mingw-w64-cross-crt
]
uses: ./.github/workflows/build-package.yml
with:
Expand All @@ -86,7 +86,7 @@ jobs:
mingw-w64-cross-gcc-stage1,
mingw-w64-cross-windows-default-manifest,
mingw-w64-cross-crt,
mingw-w64-cross-winpthreads,
mingw-w64-cross-winpthreads
]
uses: ./.github/workflows/build-package.yml
with:
Expand All @@ -95,6 +95,23 @@ jobs:
packages_repository: Windows-on-ARM-Experiments/MSYS2-packages
packages_branch: ${{ github.event.inputs.msys2_packages_branch || 'woarm64' }}

mingw-w64-cross-zlib:
needs: [
mingw-w64-cross-headers,
mingw-w64-cross-binutils,
mingw-w64-cross-windows-default-manifest,
mingw-w64-cross-crt,
mingw-w64-cross-winpthreads,
mingw-w64-cross-gcc
]

uses: ./.github/workflows/build-package.yml
with:
package_name: mingw-w64-cross-zlib
needs: ${{ toJson(needs) }}
packages_repository: Windows-on-ARM-Experiments/MSYS2-packages
packages_branch: ${{ github.event.inputs.msys2_packages_branch || 'woarm64' }}

repository:
needs:
[
Expand All @@ -105,6 +122,7 @@ jobs:
mingw-w64-cross-crt,
mingw-w64-cross-winpthreads,
mingw-w64-cross-gcc,
mingw-w64-cross-zlib
]
runs-on: windows-latest

Expand Down Expand Up @@ -153,6 +171,11 @@ jobs:
with:
name: mingw-w64-cross-gcc

- name: Download mingw-w64-cross-zlib
uses: actions/download-artifact@v4
with:
name: mingw-w64-cross-zlib

- name: Setup MSYS2 packages repository
run: |
mkdir aarch64
Expand Down
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ echo "::group::Build mingw-w64-cross-gcc"
pacman -U --noconfirm *.pkg.tar.zst
popd
echo "::endgroup::"

echo "::group::Build mingw-w64-cross-zlib"
pushd ../MSYS2-packages/mingw-w64-cross-zlib
makepkg $MAKEPKG_OPTIONS --skippgpcheck
popd
echo "::endgroup::"

0 comments on commit 5974c1f

Please sign in to comment.