diff --git a/.github/workflows/sphinx-tuttest.yml b/.github/workflows/sphinx-tuttest.yml index 17758f9..f8f0e67 100644 --- a/.github/workflows/sphinx-tuttest.yml +++ b/.github/workflows/sphinx-tuttest.yml @@ -4,7 +4,7 @@ on: [push, pull_request] jobs: test-sphinx-docs: - runs-on: ubuntu-18.04 + runs-on: [self-hosted, Linux, X64] strategy: fail-fast: false matrix: @@ -46,31 +46,33 @@ jobs: - {fpga-fam: "xc7", os: "debian", os-version: "sid", example: "litex_linux"} env: LANG: "en_US.UTF-8" - DOCKER_NAME: test - IN_DOCKER_EXEC: "docker exec -t test bash -e -c" + DEBIAN_FRONTEND: "noninteractive" + BASH_CMD: "bash -ex -" + + container: ${{matrix.os}}:${{matrix.os-version}} steps: - name: Setup repository uses: actions/checkout@v2 - - name: Set Up Python - uses: actions/setup-python@v2 + - name: Install utils + if: ${{matrix.os == 'ubuntu' || matrix.os == 'debian'}} + run: apt -qqy update && apt -qqy install wget locales && locale-gen $LANG - - name: Setup Docker - run: | - docker create --name $DOCKER_NAME -v $PWD:$PWD --workdir $PWD --tty ${{matrix.os}}:${{matrix.os-version}} - docker start $DOCKER_NAME + - name: Install utils + if: ${{matrix.os == 'centos'}} + run: yum -y install wget - name: Install tuttest run: | - sudo locale-gen $LANG - pip3 install git+https://github.com/antmicro/tuttest#egg=tuttest + wget https://github.com/antmicro/tuttest/releases/download/0.1.1/tuttest -O /usr/bin/tuttest + chmod a+rx /usr/bin/tuttest - name: Install SymbiFlow toolchain - run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}} | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)" + run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}} | ${BASH_CMD} - name: Build examples - run: bash .github/scripts/build-examples.sh ${{matrix.fpga-fam}} ${{matrix.example}} | ${IN_DOCKER_EXEC} "$(cat /dev/stdin)" + run: bash .github/scripts/build-examples.sh ${{matrix.fpga-fam}} ${{matrix.example}} | ${BASH_CMD} - uses: actions/upload-artifact@v2 with: