Skip to content

Commit 9ed379c

Browse files
committed
Serial Experiments GitHub Actions
BuildChannelsMacOS, SemverLinux, and SemverMacOS
1 parent 6e4f0a5 commit 9ed379c

File tree

3 files changed

+138
-3
lines changed

3 files changed

+138
-3
lines changed

.github/workflows/main.yml

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,3 +426,138 @@ jobs:
426426
done
427427
- name: Execute run-docker.sh
428428
run: LIBC_CI=1 sh ./ci/run-docker.sh switch
429+
430+
build_channels_macos:
431+
name: Build Channels macOS
432+
runs-on: macos-10.15
433+
env:
434+
OS: macos
435+
strategy:
436+
fail-fast: false
437+
max-parallel: 5
438+
matrix:
439+
toolchain: [
440+
stable,
441+
beta,
442+
nightly,
443+
1.13.0,
444+
1.19.0,
445+
1.24.0,
446+
1.25.0,
447+
1.30.0,
448+
]
449+
steps:
450+
- uses: actions/checkout@v2
451+
452+
- name: Setup Rust toolchain
453+
run: |
454+
set -ex
455+
rustup set profile minimal
456+
rustup update --force ${{ matrix.toolchain }}
457+
rustup default ${{ matrix.toolchain }}
458+
- name: Query Rust and Cargo versions
459+
run: |
460+
set -ex
461+
rustc -Vv
462+
cargo -V
463+
rustup -Vv
464+
rustup show
465+
which rustc
466+
which cargo
467+
which rustup
468+
- name: Generate lockfile
469+
run: |
470+
set -ex
471+
N=5
472+
n=0
473+
until [ $n -ge $N ]
474+
do
475+
if cargo generate-lockfile ; then
476+
break
477+
fi
478+
n=$((n+1))
479+
sleep 1
480+
done
481+
- name: Execute build.sh
482+
run: LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
483+
484+
semver_linux:
485+
name: Semver Linux
486+
runs-on: ubuntu-18.04
487+
strategy:
488+
fail-fast: false
489+
steps:
490+
- uses: actions/checkout@v2
491+
492+
- name: Setup Rust toolchain
493+
run: |
494+
set -ex
495+
rustup set profile minimal
496+
rustup update --force nightly
497+
rustup default nightly
498+
- name: Query Rust and Cargo versions
499+
run: |
500+
set -ex
501+
rustc -Vv
502+
cargo -V
503+
rustup -Vv
504+
rustup show
505+
which rustc
506+
which cargo
507+
which rustup
508+
- name: Generate lockfile
509+
run: |
510+
set -ex
511+
N=5
512+
n=0
513+
until [ $n -ge $N ]
514+
do
515+
if cargo generate-lockfile ; then
516+
break
517+
fi
518+
n=$((n+1))
519+
sleep 1
520+
done
521+
- name: Check breaking changes
522+
run: sh ci/semver.sh linux
523+
524+
525+
semver_macos:
526+
name: Semver macOS
527+
runs-on: macos-10.15
528+
strategy:
529+
fail-fast: false
530+
steps:
531+
- uses: actions/checkout@v2
532+
533+
- name: Setup Rust toolchain
534+
run: |
535+
set -ex
536+
rustup set profile minimal
537+
rustup update --force nightly
538+
rustup default nightly
539+
- name: Query Rust and Cargo versions
540+
run: |
541+
set -ex
542+
rustc -Vv
543+
cargo -V
544+
rustup -Vv
545+
rustup show
546+
which rustc
547+
which cargo
548+
which rustup
549+
- name: Generate lockfile
550+
run: |
551+
set -ex
552+
N=5
553+
n=0
554+
until [ $n -ge $N ]
555+
do
556+
if cargo generate-lockfile ; then
557+
break
558+
fi
559+
n=$((n+1))
560+
sleep 1
561+
done
562+
- name: Check breaking changes
563+
run: sh ci/semver.sh macos

ci/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ case "${OS}" in
180180
fi
181181

182182
;;
183-
osx*)
183+
macos*)
184184
TARGETS="${RUST_OSX_TARGETS}"
185185
;;
186186
*)
@@ -269,7 +269,7 @@ i386-apple-ios \
269269
i686-apple-darwin \
270270
"
271271

272-
if [ "${RUST}" = "nightly" ] && [ "${OS}" = "osx" ]; then
272+
if [ "${RUST}" = "nightly" ] && [ "${OS}" = "macos" ]; then
273273
for TARGET in $RUST_OSX_NO_CORE_TARGETS; do
274274
if echo "$TARGET" | grep -q "$FILTER"; then
275275
test_target build "$TARGET" 1

ci/semver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ x86_64-fortanix-unknown-sgx \
5353
wasm32-unknown-unknown \
5454
"
5555
;;
56-
*osx*)
56+
*macos*)
5757
TARGETS="\
5858
aarch64-apple-ios \
5959
x86_64-apple-darwin \

0 commit comments

Comments
 (0)