From 22bfa7b5847289d794662f474b9dc3192337ffe8 Mon Sep 17 00:00:00 2001 From: umarcor Date: Sun, 29 Nov 2020 06:11:44 +0100 Subject: [PATCH] ci: migrate from Travis CI to GitHub Actions --- .github/workflows/test.yml | 73 ++++++++++++++++++++++++++++++++++++++ .travis.yml | 71 ------------------------------------ 2 files changed, 73 insertions(+), 71 deletions(-) create mode 100644 .github/workflows/test.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..9252dda3e --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,73 @@ +name: test + +on: + push: + pull_request: + +jobs: + + + lin: + + strategy: + fail-fast: false + matrix: + os: [ + '18.04', + '20.04' + ] + runs-on: ubuntu-${{ matrix.os }} + name: '🐧 Ubuntu' + steps: + + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + sudo apt update -qq + sudo apt install -y make g++ git bison flex gperf libreadline-dev autoconf + + - name: Build and test + run: | + git clone https://github.com/steveicarus/ivtest.git + export PATH=$HOME/bin:$PATH + autoconf + ./configure --prefix=$HOME + make install + make check + cd ivtest + perl vvp_reg.pl + diff regression_report-devel.txt regression_report.txt + perl vpi_reg.pl + + + win: + runs-on: windows-latest + name: '🧊 Windows' + steps: + + - run: git config --global core.autocrlf input + + - uses: actions/checkout@v2 + + - name: Build and test + shell: bash + run: | + git clone https://github.com/steveicarus/ivtest.git + choco uninstall -y mingw + choco upgrade --no-progress -y msys2 + export msys2='cmd //C RefreshEnv.cmd ' + export msys2+='& set MSYS=winsymlinks:nativestrict ' + export msys2+='& C:\\msys64\\msys2_shell.cmd -defterm -no-start' + export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" + export msys2+=" -msys2 -c "\"\$@"\" --" + $msys2 pacman --sync --noconfirm --needed base-devel mingw-w64-x86_64-toolchain + $mingw64 ./autoconf.sh + $mingw64 ./configure + $mingw64 make install + $mingw64 make check + cd ivtest + $mingw64 perl update_msys2_report.pl + $mingw64 perl vvp_reg.pl + diff --strip-trailing-cr regression_report-msys2.txt regression_report.txt + $mingw64 perl vpi_reg.pl diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6b4e8c3b6..000000000 --- a/.travis.yml +++ /dev/null @@ -1,71 +0,0 @@ -language: cpp -sudo: required -dist: xenial - -addons: - apt: - packages: - - gperf - -sudo: false - -notifications: - email: false - -jobs: - include: - - - stage: Test - os: linux - dist: xenial - before_install: - - git clone https://github.com/steveicarus/ivtest.git - - export PATH=$HOME/bin:$PATH - script: - - autoconf - - ./configure --prefix=$HOME - - make install - - make check - - cd ivtest - - perl vvp_reg.pl - - diff regression_report-devel.txt regression_report.txt - - perl vpi_reg.pl - - - stage: Test - os: linux - dist: bionic - before_install: - - git clone https://github.com/steveicarus/ivtest.git - - export PATH=$HOME/bin:$PATH - script: - - autoconf - - ./configure --prefix=$HOME - - make install - - make check - - cd ivtest - - perl vvp_reg.pl - - diff regression_report-devel.txt regression_report.txt - - perl vpi_reg.pl - - - stage: Test - os: windows - before_install: - - git clone https://github.com/steveicarus/ivtest.git - - choco uninstall -y mingw - - choco upgrade --no-progress -y msys2 - - export msys2='cmd //C RefreshEnv.cmd ' - - export msys2+='& set MSYS=winsymlinks:nativestrict ' - - export msys2+='& C:\\tools\\msys64\\msys2_shell.cmd -defterm -no-start' - - export mingw64="$msys2 -mingw64 -full-path -here -c "\"\$@"\" --" - - export msys2+=" -msys2 -c "\"\$@"\" --" - - $msys2 pacman --sync --noconfirm --needed base-devel mingw-w64-x86_64-toolchain - script: - - $mingw64 ./autoconf.sh - - $mingw64 ./configure - - $mingw64 make install - - $mingw64 make check - - cd ivtest - - $mingw64 perl update_msys2_report.pl - - $mingw64 perl vvp_reg.pl - - diff --strip-trailing-cr regression_report-msys2.txt regression_report.txt - - $mingw64 perl vpi_reg.pl