Skip to content

Commit

Permalink
Merge pull request #96 from rimrul/msys2-runtime-3.3
Browse files Browse the repository at this point in the history
add a msys2-runtime-3.3 package
  • Loading branch information
rimrul authored May 8, 2023
2 parents b346dcf + b7b0dfc commit ff8e8ef
Show file tree
Hide file tree
Showing 72 changed files with 17,569 additions and 18 deletions.
1 change: 1 addition & 0 deletions .ci/ci-dont-install-list.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
msys2-runtime
msys2-runtime-3.3
bash
78 changes: 78 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
1 change: 1 addition & 0 deletions msys2-runtime-3.3/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
msys2-runtime/
Loading

0 comments on commit ff8e8ef

Please sign in to comment.