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 54% rename from .travis/dobootfile.sh rename to .github/scripts/dobootfile.sh index aea46fc013..03ceea230e 100755 --- a/.travis/dobootfile.sh +++ b/.github/scripts/dobootfile.sh @@ -8,14 +8,12 @@ case $TARGET_MACHINE in *) esac curl -L -o installer.sh http://www.cs.utah.edu/plt/snapshots/current/installers/min-racket-current-${INST}-linux-precise.sh -sh installer.sh --in-place --dest ~/racket/ +sh installer.sh --in-place --dest $HOME/racket/ -~/racket/bin/racket -v -~/racket/bin/raco pkg install -i --auto --no-setup cs-bootstrap -~/racket/bin/raco setup -D cs-bootstrap - -cd ChezScheme/ +$HOME/racket/bin/racket -v +$HOME/racket/bin/raco pkg install -i --auto -D cs-bootstrap export MACH=$TARGET_MACHINE -~/racket/bin/racket -l cs-bootstrap +cd ChezScheme +$HOME/racket/bin/racket -l cs-bootstrap 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..20d553586f --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,40 @@ +name: Build CI + +on: [push, pull_request] + +jobs: + + build-linux: + runs-on: ubuntu-18.04 + + strategy: + fail-fast: false + matrix: + mach: ['ta6le'] + + env: + TARGET_MACHINE: ${{ matrix.mach }} + + steps: + - uses: actions/checkout@v2 + with: + submodules: 'recursive' + - name: Proceed with TARGET_MACHINE == ${{ matrix.mach }} + run: echo $TARGET_MACHINE + - name: Install libs for 32-bit + if: matrix.mach == 'i3le' || matrix.mach == 'ti3le' + run: | + sudo dpkg --add-architecture i386 + sudo apt-get update + sudo apt-get install -y gcc-multilib lib32ncurses5-dev libx32ncurses5-dev uuid-dev:i386 libssl-dev:i386 + - name: Install libs for 64-bit + if: matrix.mach == 'a6le' || matrix.mach == 'ta6le' + run: | + sudo apt-get update + sudo apt-get install -y libncurses5-dev uuid-dev libssl-dev + - 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