Skip to content

Commit

Permalink
Fix how source code repositories branches are specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex committed Sep 11, 2024
1 parent 9a90bea commit 55ac119
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ set -e # exit on error
set -x # echo on
set -o pipefail # fail of any command in pipeline is an error

BINUTILS_BRANCH=${BINUTILS_BRANCH:-woarm64}
GCC_BRANCH=${GCC_BRANCH:-woarm64}
MINGW_BRANCH=${MINGW_BRANCH:-woarm64}
CYGWIN_BRANCH=${CYGWIN_BRANCH:-main}
CYGWIN_PACKAGES_BRANCH=${CYGWIN_PACKAGES_BRANCH:-main}
COCOM_BRANCH=${COCOM_BRANCH:-master}

ARCH=${ARCH:-aarch64}
PLATFORM=${PLATFORM:-w64-mingw32}
if [[ "$PLATFORM" =~ (mingw|cygwin) ]]; then
Expand Down
12 changes: 6 additions & 6 deletions .github/scripts/update-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ echo "::group::Update source code repositories"
mkdir -p "$SOURCE_PATH"

cd "$SOURCE_PATH"
update_repository binutils https://github.com/Windows-on-ARM-Experiments/binutils-woarm64.git woarm64
update_repository gcc https://github.com/Windows-on-ARM-Experiments/gcc-woarm64.git woarm64
update_repository mingw https://github.com/Windows-on-ARM-Experiments/mingw-woarm64.git woarm64
update_repository binutils https://github.com/Windows-on-ARM-Experiments/binutils-woarm64.git $BINUTILS_BRANCH
update_repository gcc https://github.com/Windows-on-ARM-Experiments/gcc-woarm64.git $GCC_BRANCH
update_repository mingw https://github.com/Windows-on-ARM-Experiments/mingw-woarm64.git $MINGW_BRANCH
if [[ "$PLATFORM" =~ cygwin ]]; then
update_repository cygwin https://github.com/Windows-on-ARM-Experiments/newlib-cygwin.git main
update_repository cygwin-packages https://github.com/Windows-on-ARM-Experiments/cygwin-packages.git main
update_repository cocom https://git.code.sf.net/p/cocom/git master
update_repository cygwin https://github.com/Windows-on-ARM-Experiments/newlib-cygwin.git $CYGWIN_BRANCH
update_repository cygwin-packages https://github.com/Windows-on-ARM-Experiments/cygwin-packages.git $CYGWIN_PACKAGES_BRANCH
update_repository cocom https://git.code.sf.net/p/cocom/git $COCOM_BRANCH
fi
echo "::endgroup::"

Expand Down

0 comments on commit 55ac119

Please sign in to comment.