Merge pull request #22 from pmatos/actions-ci

Move to GitHub Actions CI
original commit: 548af4b5bcc7d1201d5aabfdeb477248a65b86f2
This commit is contained in:
Paulo Matos 2020-04-27 16:11:11 +02:00 committed by GitHub
commit 689a3f8abc
6 changed files with 46 additions and 74 deletions

View File

@ -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

View File

@ -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

40
.github/workflows/build.yml vendored Normal file
View File

@ -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

View File

@ -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