forked from msys2/MSYS2-packages
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from rimrul/msys2-runtime-3.3
add a msys2-runtime-3.3 package
- Loading branch information
Showing
72 changed files
with
17,569 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
msys2-runtime | ||
msys2-runtime-3.3 | ||
bash |
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 |
---|---|---|
|
@@ -28,3 +28,81 @@ jobs: | |
with: | ||
name: msys2-packages | ||
path: artifacts/*.pkg.tar.* | ||
build-i686: | ||
if: contains(github.event.pull_request.title, 'msys2-runtime-3.3') | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # needed to determine which packages to build | ||
- uses: git-for-windows/setup-git-for-windows-sdk@v1 | ||
with: | ||
flavor: full | ||
architecture: i686 | ||
msys: true | ||
- name: rebase `.dll` base addresses | ||
shell: powershell | ||
run: | | ||
if (Test-Path D:\git-sdk-32-full -PathType Container) { | ||
cd D:\git-sdk-32-full | ||
} else { | ||
cd C:\git-sdk-32-full | ||
} | ||
if (!$?) { exit(1); } | ||
$env:MSYSTEM = "MINGW32" | ||
$env:PATH = "$(Get-Location)\usr\bin;" + $env:PATH | ||
$env:MSYS2_PATH_TYPE = "minimal" | ||
# Disable pacman's post-transaction hook that would mess everything up, if it exists | ||
sh.exe -lc "set -x && rm -f /usr/share/libalpm/hooks/rebase.hook" | ||
sh.exe -lc "set -x && find /usr/lib/perl5/*_perl -name \*.dll >perl-dlls.txt" | ||
type perl-dlls.txt | ||
dash -x /usr/bin/rebaseall -p -T perl-dlls.txt | ||
# Work around for: | ||
# - address space needed by 'Cwd.dll' is already occupied | ||
# - address space needed by 'Dumper.dll' is already occupied | ||
# etc | ||
bash -lc "set -x && rebase -b 0x61500000 /usr/lib/perl5/core_perl/auto/*/{*,*/*}.dll" | ||
# Work around for: | ||
# - address space needed by 'Cwd.dll' is already occupied | ||
bash -lc "set -x && rebase -v -b 0x63f00000 /usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll" | ||
# verify the base address | ||
bash -lc "set -x && rebase -v -i /usr/lib/perl5/core_perl/auto/Cwd/Cwd.dll" | ||
- name: CI-Build (i686) | ||
shell: bash | ||
run: | | ||
set -x && | ||
mkdir -p artifacts && | ||
err= && | ||
for dir in $(git diff --name-only \ | ||
${{ github.event.pull_request.base.sha }}...${{ github.event.pull_request.head.sha }} | | ||
sed -n 's/^\([a-z][^/]*\)\/.*/\1/p' | | ||
sort | | ||
uniq) | ||
do | ||
case $dir in msys2-runtime) continue;; esac | ||
( | ||
cd $dir && | ||
../.ci/fetch-validpgpkeys.sh && | ||
makepkg -s --noconfirm && | ||
cp -v *.pkg.tar.* ../artifacts/ | ||
) || | ||
err="$err $dir" | ||
done && | ||
test -z "$err" || { | ||
echo "::error::Build failures in$err" >&2 | ||
exit 1 | ||
} | ||
env: | ||
MSYSTEM: MSYS | ||
MAKEFLAGS: -j5 | ||
MSYS2_PATH_TYPE: minimal | ||
GIT_CONFIG_PARAMETERS: "'user.name=ci' '[email protected]'" | ||
- name: "Upload binaries" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: msys2-packages-i686 | ||
path: artifacts/*.pkg.tar.* |
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 @@ | ||
msys2-runtime/ |
Oops, something went wrong.