Simplify build jobs with anchors (#2938)
This commit is contained in:
parent
2f4e4c5e6a
commit
13c9e2d27b
77
.github/workflows/ci-push.yml
vendored
77
.github/workflows/ci-push.yml
vendored
|
@ -2,6 +2,29 @@ name: CI
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
.build-strategy: &build-strategy
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, macos-latest]
|
||||||
|
cify: [cify, nocify]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
RACKET_EXTRA_CONFIGURE_ARGS: ""
|
||||||
|
|
||||||
|
.build-setup-extra-flags: &build-setup-extra-flags
|
||||||
|
- name: Setup OS specific configure args
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: echo "::set-env name=RACKET_EXTRA_CONFIGURE_ARGS::--enable-macprefix $RACKET_EXTRA_CONFIGURE_ARGS"
|
||||||
|
- name: Setup cify if enabled
|
||||||
|
if: matrix.cify == 'cify'
|
||||||
|
run: echo "::set-env name=CIFY_OPTION::--enable-cify"
|
||||||
|
- name: Setup cify if disabled
|
||||||
|
if: matrix.cify == 'nocify'
|
||||||
|
run: echo "::set-env name=CIFY_OPTION::--disable-cify"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# Build jobs
|
# Build jobs
|
||||||
|
@ -9,29 +32,13 @@ jobs:
|
||||||
# component finishes building.
|
# component finishes building.
|
||||||
|
|
||||||
build-racketcgc:
|
build-racketcgc:
|
||||||
strategy:
|
<<: *build-strategy
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-18.04, macos-latest]
|
|
||||||
cify: [cify, nocify]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
env:
|
|
||||||
RACKET_EXTRA_CONFIGURE_ARGS: ""
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- name: Setup OS specific configure args
|
<<: *build-setup-extra-flags
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: echo "::set-env name=RACKET_EXTRA_CONFIGURE_ARGS::--enable-macprefix $RACKET_EXTRA_CONFIGURE_ARGS"
|
|
||||||
- name: Setup cify if enabled
|
|
||||||
if: matrix.cify == 'cify'
|
|
||||||
run: echo "::set-env name=CIFY_OPTION::--enable-cify"
|
|
||||||
- name: Setup cify if disabled
|
|
||||||
if: matrix.cify == 'nocify'
|
|
||||||
run: echo "::set-env name=CIFY_OPTION::--disable-cify"
|
|
||||||
- name: Configuring Racket CGC
|
- name: Configuring Racket CGC
|
||||||
working-directory: ./racket/src
|
working-directory: ./racket/src
|
||||||
run: >
|
run: >
|
||||||
|
@ -64,32 +71,14 @@ jobs:
|
||||||
path: ../racketcgc-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }}.tar.bz2
|
path: ../racketcgc-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }}.tar.bz2
|
||||||
|
|
||||||
build-racket3m:
|
build-racket3m:
|
||||||
strategy:
|
<<: *build-strategy
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-18.04, macos-latest]
|
|
||||||
cify: [cify, nocify]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
needs: build-racketcgc
|
needs: build-racketcgc
|
||||||
|
|
||||||
env:
|
|
||||||
RACKET_EXTRA_CONFIGURE_ARGS: ""
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
fetch-depth: 100
|
fetch-depth: 100
|
||||||
- name: Setup OS specific configure args
|
<<: *build-setup-extra-flags
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: echo "::set-env name=RACKET_EXTRA_CONFIGURE_ARGS::--enable-macprefix $RACKET_EXTRA_CONFIGURE_ARGS"
|
|
||||||
- name: Setup cify if enabled
|
|
||||||
if: matrix.cify == 'cify'
|
|
||||||
run: echo "::set-env name=CIFY_OPTION::--enable-cify"
|
|
||||||
- name: Setup cify if disabled
|
|
||||||
if: matrix.cify == 'nocify'
|
|
||||||
run: echo "::set-env name=CIFY_OPTION::--disable-cify"
|
|
||||||
- uses: actions/download-artifact@master
|
- uses: actions/download-artifact@master
|
||||||
with:
|
with:
|
||||||
name: racketcgc-${{ matrix.os }}-nocify-x64_git${{ github.sha }}
|
name: racketcgc-${{ matrix.os }}-nocify-x64_git${{ github.sha }}
|
||||||
|
@ -129,17 +118,9 @@ jobs:
|
||||||
path: ../racket3m-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }}.tar.bz2
|
path: ../racket3m-${{ matrix.os }}-${{ matrix.cify }}-x64_git${{ github.sha }}.tar.bz2
|
||||||
|
|
||||||
build-racketcs:
|
build-racketcs:
|
||||||
strategy:
|
<<: *build-strategy
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-18.04, macos-latest]
|
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
needs: build-racketcgc
|
needs: build-racketcgc
|
||||||
|
|
||||||
env:
|
|
||||||
RACKET_EXTRA_CONFIGURE_ARGS: ""
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user