-
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
24 changed files
with
1,301 additions
and
408 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/msys/x86_64 | ||
mv -f mingw-w64-cross-*.pkg.* repository/msys/x86_64/ | ||
pushd repository/msys/x86_64 | ||
repo-add woarm64-cross.db.tar.gz *.pkg.* | ||
popd | ||
|
||
mkdir -p repository/mingw/aarch64 | ||
mv -f mingw-w64-aarch64-*.pkg.* repository/mingw/aarch64/ | ||
pushd repository/mingw/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,32 @@ | ||
#!/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::Pacman hang workaround" | ||
while ! timeout -k 15s 10s pacman -U --noconfirm "$DIR/patches/pacman/pacman-6.1.0-4-x86_64.pkg.tar.zst" | ||
do | ||
echo "Command failed, retrying..." | ||
done | ||
echo "::endgroup::" | ||
|
||
echo "::group::Install patch" | ||
pacman -S --noconfirm patch | ||
echo "::endgroup::" | ||
|
||
pushd / | ||
echo "::group::Pin pacman packages" | ||
patch -p1 -b -i "$DIR/patches/pacman/0001-pin-packages.patch" | ||
echo "::endgroup::" | ||
|
||
echo "::group::/etc/pacman.conf" | ||
cat /etc/pacman.conf | ||
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
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.