Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuclaw committed Jan 1, 2024
2 parents efe3deb + 27d7e42 commit c0261b7
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 185 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build_release_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
N=$(( 2 * $(nproc) ))
# Build minimal host compiler (sometimes not triggered by dlang.org/posix.mak)
make -f posix.mak -j$N -C dmd/druntime
make -j$N -C dmd
# Build docs and include the man pages
make -f posix.mak -j$N -C dlang.org release
Expand Down Expand Up @@ -266,15 +266,18 @@ jobs:
#
- name: Run build_all.d for FreeBSD in a dedicated VM
if: matrix.target == 'freebsd'
uses: vmactions/freebsd-vm@v0.2.9
uses: cross-platform-actions/action@v0.21.1
with:
usesh: true
# Need more RAM than the default 1G
mem: 4096
prepare: pkg install -y bash curl curlpp git gmake pkgconf gnupg rsync llvm90
operating_system: freebsd
hypervisor: qemu
memory: 8G
version: '12.2'
shell: bash
run: |
set -eux
sudo pkg install -y curl curlpp git gmake pkgconf gnupg rsync llvm
# Import key used to sign binaries
curl https://dlang.org/d-keyring.gpg -o d-keyring.gpg
gpg d-keyring.gpg
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: test_release
on:
pull_request:
push:
branches:
- master

jobs:
build_release:
Expand Down Expand Up @@ -70,10 +68,12 @@ jobs:

- name: Check ${{ matrix.os }} artifacts in a VM
if: ${{ matrix.os == 'freebsd' }}
uses: cross-platform-actions/action@v0.6.2
uses: cross-platform-actions/action@v0.21.1
with:
operating_system: freebsd
version: 12.2
hypervisor: qemu
memory: 8G
version: '12.2'
environment_variables: OS BUILD
shell: bash
run: source ./installer/test/release/validate_release.sh
Expand Down
2 changes: 1 addition & 1 deletion create_dmd_release/build_all.d
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void cloneSources(string gitTag, string dubTag, bool isBranch, bool skipDocs, st
run(fmt.format(gitTag, proj));
}
enforce(nfallback < allProjects.length, "Branch " ~ gitTag ~ " not found in any dlang repo.");
run(fmt.format(dubTag, "dub"));
run(fmt.format(isBranch && !branchExists(prefix ~ "dub", dubTag) ? "master" : dubTag, "dub"));
}

bool branchExists(string gitRepo, string branch)
Expand Down
Loading

0 comments on commit c0261b7

Please sign in to comment.