From 65146afcf58dd4512f7b083a817943b2a7e6af4b Mon Sep 17 00:00:00 2001 From: Paulo Matos Date: Sun, 26 Apr 2020 13:12:35 +0200 Subject: [PATCH] Move from Travis to GitHub Actions This consolidates use of GitHub Actions, since we are using it as well with racket/racket. original commit: c3bf252c76ef594dfccf332def30f3d9c733282d --- {.travis => .github/scripts}/build.sh | 0 {.travis => .github/scripts}/dobootfile.sh | 0 {.travis => .github/scripts}/summary | 0 {.travis => .github/scripts}/test.sh | 2 +- .github/workflows/build.yml | 46 +++++++++++++++ .travis.yml | 66 ---------------------- 6 files changed, 47 insertions(+), 67 deletions(-) rename {.travis => .github/scripts}/build.sh (100%) rename {.travis => .github/scripts}/dobootfile.sh (100%) rename {.travis => .github/scripts}/summary (100%) rename {.travis => .github/scripts}/test.sh (87%) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.travis/build.sh b/.github/scripts/build.sh similarity index 100% rename from .travis/build.sh rename to .github/scripts/build.sh diff --git a/.travis/dobootfile.sh b/.github/scripts/dobootfile.sh similarity index 100% rename from .travis/dobootfile.sh rename to .github/scripts/dobootfile.sh diff --git a/.travis/summary b/.github/scripts/summary similarity index 100% rename from .travis/summary rename to .github/scripts/summary diff --git a/.travis/test.sh b/.github/scripts/test.sh similarity index 87% rename from .travis/test.sh rename to .github/scripts/test.sh index 38ee73fb95..64161aef68 100755 --- a/.travis/test.sh +++ b/.github/scripts/test.sh @@ -14,7 +14,7 @@ runmats o=3 cp0=t eval=interpret if [ -f ${TARGET_MACHINE}/mats/summary ]; then cat ${TARGET_MACHINE}/mats/summary - diff -q .travis/summary ${TARGET_MACHINE}/mats/summary + diff -q .github/scripts/summary ${TARGET_MACHINE}/mats/summary exit $? else exit 1 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000..7fa50efc0a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: Build CI + +on: [push, pull_request] + +jobs: + + build-linux: + runs-on: ubuntu-18.04 + container: ubuntu:20.04 + + strategy: + fail-fast: false + matrix: + mach: [i3le, ti3le, i6le, ta6le] + + env: + TARGET_MACHINE: ${{ matrix.mach }} + + steps: + - uses: actions/checkout@v1 + - name: Build bootfiles + run: .github/scripts/dobootfile.sh + - name: Build Chez + run: .github/scripts/build.sh + - name: Test Chez + run: .github/scripts/test.sh + + build-macos: + runs-on: macos-latest + + strategy: + fail-fast: false + matrix: + mach: [i3le, ti3le, i6le, ta6le] + + env: + TARGET_MACHINE: ${{ matrix.mach }} + + steps: + - uses: actions/checkout@v1 + - name: Build bootfiles + run: .github/scripts/dobootfile.sh + - name: Build Chez + run: .github/scripts/build.sh + - name: Test Chez + run: .github/scripts/test.sh diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2d90521da2..0000000000 --- a/.travis.yml +++ /dev/null @@ -1,66 +0,0 @@ -language: c -matrix: - include: - # macOS - #- env: TARGET_MACHINE=i3osx - # os: osx - #- env: TARGET_MACHINE=ti3osx - # os: osx - #- env: TARGET_MACHINE=a6osx - # os: osx - #- env: TARGET_MACHINE=ta6osx - # os: osx - - # Linux - - env: TARGET_MACHINE=i3le - os: linux - addons: - apt: - packages: - - gcc-multilib - - lib32ncurses5-dev - - libx32ncurses5-dev - - uuid-dev:i386 - - libssl-dev:i386 - - env: TARGET_MACHINE=ti3le - os: linux - addons: - apt: - packages: - - gcc-multilib - - lib32ncurses5-dev - - libx32ncurses5-dev - - uuid-dev:i386 - - libssl-dev:i386 - - env: TARGET_MACHINE=a6le - os: linux - - env: TARGET_MACHINE=ta6le - os: linux - - # Windows - #- env: TARGET_MACHINE=i3nt - # os: windows - # before_script: - # - git config core.autocrlf false; rm .git/index; git reset --hard - # - choco install make -y - #- env: TARGET_MACHINE=ti3nt - # os: windows - # before_script: - # - git config core.autocrlf false; rm .git/index; git reset --hard - # - choco install make -y - #- env: TARGET_MACHINE=a6nt - # os: windows - # before_script: - # - git config core.autocrlf false; rm .git/index; git reset --hard - # - choco install make -y - #- env: TARGET_MACHINE=ta6nt - # os: windows - # before_script: - # - git config core.autocrlf false; rm .git/index; git reset --hard - # - choco install make -y -dist: xenial -before_script: - - .travis/dobootfile.sh -script: - - .travis/build.sh - - .travis/test.sh