-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build native MinGW toolchain packages
- Loading branch information
Showing
21 changed files
with
853 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
set -x # echo on | ||
set -o pipefail # fail of any command in pipeline is an error | ||
|
||
echo "::group::Create MSYS2 packages repository" | ||
mkdir -p repository/x86_64 | ||
mv -f mingw-w64-cross-*.pkg.* repository/x86_64/ | ||
pushd repository/x86_64 | ||
repo-add woarm64.db.tar.gz *.pkg.* | ||
popd | ||
|
||
mkdir -p repository/aarch64 | ||
mv -f mingw-w64-aarch64-*.pkg.* repository/aarch64/ | ||
pushd repository/aarch64 | ||
repo-add woarm64-native.db.tar.gz *.pkg.* | ||
popd | ||
echo "::endgroup::" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
set -x # echo on | ||
set -o pipefail # fail of any command in pipeline is an error | ||
|
||
if [ -z "$GITHUB_WORKSPACE" ]; then | ||
DIR=`pwd` | ||
else | ||
DIR=`cygpath "$GITHUB_WORKSPACE"` | ||
fi | ||
|
||
echo "::group::Install patch" | ||
pacman -S --noconfirm patch | ||
echo "::endgroup::" | ||
|
||
pushd / | ||
echo "::group::Patch MSYS2 environment" | ||
patch -p1 -b -i "$DIR/patches/makepkg/0001-mingwarm64.patch" | ||
if [[ "$CROSS_BUILD" = "1" ]]; then | ||
patch -p1 -b -i "$DIR/patches/makepkg/0002-mingwarm64-cross-build.patch" | ||
fi | ||
if [[ "$DEBUG_BUILD" = "1" ]]; then | ||
patch -p1 -b -i "$DIR/patches/makepkg/0003-enable-debug.patch" | ||
fi | ||
echo "::endgroup::" | ||
|
||
echo "::group::/etc/makepkg_mingw.conf" | ||
cat /etc/makepkg_mingw.conf | ||
echo "::endgroup::" | ||
|
||
echo "::group::/etc/profile" | ||
cat /etc/profile | ||
echo "::endgroup::" | ||
|
||
echo "::group::/usr/share/makepkg/tidy/strip.sh" | ||
cat /usr/share/makepkg/tidy/strip.sh | ||
echo "::endgroup::" | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.