message: Adapt to custom runners
diff: @@ -9,7 +9,8 @@ on:
  jobs:
  test-plugin:
  - runs-on: ubuntu-latest
  + runs-on: [self-hosted, Linux, X64]
  + container: ubuntu:bionic
  defaults:
  run:
  shell: bash
  @@ -18,19 +19,20 @@ jobs:
  env:
  CC: gcc-9
  CXX: g++-9
  + CCACHE_DIR: "/root/Surelog/Surelog/.cache/"
  DEBIAN_FRONTEND: noninteractive
  steps:
  - name: Install dependencies
  run: |
  - sudo apt-get update -qq
  - sudo apt install -y software-properties-common
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  - sudo apt-get update -qq
  - sudo apt install -y gcc-9 g++-9 build-essential cmake tclsh ant default-jre swig google-perftools libgoogle-perftools-dev python3 python3-dev python3-pip uuid uuid-dev tcl-dev flex libfl-dev git pkg-config libreadline-dev bison libffi-dev wget
  - sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  - sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
  + apt-get update -qq
  + apt install -y software-properties-common
  + add-apt-repository ppa:ubuntu-toolchain-r/test
  + apt-get update -qq
  + apt install -y gcc-9 g++-9 build-essential cmake tclsh ant default-jre swig google-perftools libgoogle-perftools-dev python3 python3-dev python3-pip uuid uuid-dev tcl-dev flex libfl-dev git pkg-config libreadline-dev bison libffi-dev wget
  + update-alternatives --install /usr/bin/python python /usr/bin/python3 1
  + update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
  pip install orderedmultidict
  - name: Setup integration repository
  @@ -50,15 +52,18 @@ jobs:
  fetch-depth: 0
  path: 'yosys-uhdm-plugin-integration/Surelog'
  - - name: Use ccache
  - uses: hendrikmuhs/ccache-action@v1
  + - name: Setup cache
  + uses: actions/cache@v2
  with:
  - key: linux-yosys-submodules
  + path: ${{ env.CCACHE_DIR }}
  + key: cache_${{ steps.cache_timestamp.outputs.time }}
  + restore-keys: cache_
  - name: Build binaries
  run: |
  cd yosys-uhdm-plugin-integration
  - pip install cmake==3.22.4
  + # ubuntu bionic have too old cmake, install one from pip
  + pip install cmake
  echo 'PATH=/usr/lib/ccache:'"$PATH" >> $GITHUB_ENV
  ./build_binaries.sh
  