-
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.
Add workflow for mingw-w64-gcc package testing
- Loading branch information
Showing
9 changed files
with
459 additions
and
23 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,30 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
set -x # echo on | ||
set -o pipefail # fail of any command in pipeline is an error | ||
|
||
PACKAGE_REPOSITORY=$1 | ||
|
||
INSTALL_PACKAGE=${INSTALL_PACKAGE:-0} | ||
NO_EXTRACT=${NO_EXTRACT:-1} | ||
NO_ARCHIVE=${NO_ARCHIVE:-1} | ||
|
||
ARGUMENTS="--syncdeps \ | ||
--rmdeps \ | ||
--noconfirm \ | ||
--noprogressbar \ | ||
--skippgpcheck \ | ||
--recheck \ | ||
--force \ | ||
$([ "$NO_EXTRACT" = 1 ] && echo "--noextract" || echo "") \ | ||
$([ "$NO_ARCHIVE" = 1 ] && echo "--noarchive" || echo "") \ | ||
$([ "$INSTALL_PACKAGE" = 1 ] && echo "--install" || echo "")" | ||
|
||
echo "::group::Check package" | ||
if [[ "$PACKAGE_REPOSITORY" == *MINGW* ]]; then | ||
makepkg-mingw $ARGUMENTS | ||
else | ||
makepkg $ARGUMENTS | ||
fi | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
set -e # exit on error | ||
set -x # echo on | ||
set -o pipefail # fail of any command in pipeline is an error | ||
|
||
DIR="`dirname ${BASH_SOURCE[0]}`/../.." | ||
DIR=`realpath $DIR` | ||
|
||
echo "::group::Install patch" | ||
pacman -S --noconfirm patch | ||
echo "::endgroup::" | ||
|
||
pushd / | ||
echo "::group::Patch Dejagnu" | ||
patch -p1 -b -i "$DIR/patches/dejagnu/0001-local-exec.patch" | ||
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,21 @@ | ||
#!/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/0004-add-recheck-option.patch" | ||
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,78 @@ | ||
name: Build and test mingw-w64-gcc | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
packages_repository: | ||
description: "MSYS2 packages repository to build from" | ||
type: string | ||
default: "Windows-on-ARM-Experiments/MINGW-packages" | ||
packages_branch: | ||
description: "MSYS2 packages branch to build from" | ||
type: string | ||
default: "woarm64" | ||
arch: | ||
description: 'Architecture that should be built and tested' | ||
required: false | ||
default: 'aarch64' | ||
tag: | ||
description: 'Tag to use for the artifact' | ||
required: true | ||
gcc_module: | ||
description: 'GCC module to test' | ||
required: false | ||
default: 'gcc-c' | ||
gcc_test_filter: | ||
description: 'GCC test filter' | ||
required: false | ||
default: 'compile.exp=103818.c' | ||
workflow_call: | ||
inputs: | ||
packages_repository: | ||
type: string | ||
packages_branch: | ||
type: string | ||
arch: | ||
type: string | ||
tag: | ||
type: string | ||
gcc_module: | ||
type: string | ||
gcc_test_filter: | ||
type: string | ||
|
||
jobs: | ||
build-and-test-mingw-w64-gcc: | ||
name: Build and test mingw-w64-gcc | ||
uses: ./.github/workflows/build-package.yml | ||
with: | ||
package_name: mingw-w64-gcc | ||
packages_repository: ${{ inputs.packages_repository || 'Windows-on-ARM-Experiments/MINGW-packages' }} | ||
packages_branch: ${{ inputs.packages_branch || 'woarm64' }} | ||
runner_arch: ${{ inputs.arch || 'aarch64' }} | ||
cross_build: false | ||
check: true | ||
check_module: ${{ inputs.gcc_module || 'gcc-c' }} | ||
check_filter: ${{ inputs.gcc_test_filter || 'compile.exp=103818.c' }} | ||
|
||
create-summary: | ||
needs: build-and-test-mingw-w64-gcc | ||
name: Create summary | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout mingw-woarm64-build repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Windows-on-ARM-Experiments/mingw-woarm64-build | ||
|
||
- name: Download test results artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: mingw-w64-gcc-test-results | ||
path: ${{ github.workspace }}/test-results | ||
|
||
- name: Create summary | ||
run: | | ||
.github/scripts/toolchain/create-gcc-summary.sh ${{ github.workspace }}/test-results >> $GITHUB_STEP_SUMMARY |
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.