mirror of
https://github.com/chipsalliance/f4pga-examples.git
synced 2025-01-03 03:43:38 -05:00
ci: run in self hosted runners
Signed-off-by: Adam Olech <aolech@antmicro.com>
This commit is contained in:
parent
98f452d601
commit
3c941676c5
1 changed files with 15 additions and 13 deletions
28
.github/workflows/sphinx-tuttest.yml
vendored
28
.github/workflows/sphinx-tuttest.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue