Merge pull request #321 from antmicro/umarcor/test-latest

Test latest packages from arch-defs
This commit is contained in:
Tomasz Michalak 2022-07-28 14:07:41 +02:00 committed by GitHub
commit 802cb64a56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 94 additions and 1 deletions

14
.github/latest.patch vendored Normal file
View File

@ -0,0 +1,14 @@
--- a/docs/getting.rst
+++ b/docs/getting.rst
@@ -134,8 +134,8 @@ Download architecture definitions:
F4PGA_TIMESTAMP='20220714-173445'
F4PGA_HASH='f7afc12'
- for PKG in install xc7a50t_test xc7a100t_test xc7a200t_test xc7z010_test; do
- wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR/${FPGA_FAM}/install
+ for PKG in toolchain xc7a50t_test xc7a100t_test xc7a200t_test xc7z010_test; do
+ wget -qO- $(wget -qO- https://github.com/SymbiFlow/f4pga-arch-defs/releases/download/latest/symbiflow-${PKG}-latest) | tar -xJC $F4PGA_INSTALL_DIR/${FPGA_FAM}/install
done
.. group-tab:: EOS-S3
--

57
.github/workflows/Latest.yml vendored Normal file
View File

@ -0,0 +1,57 @@
name: Latest
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
Matrices:
runs-on: ubuntu-latest
outputs:
debian: ${{ steps.generate.outputs.debian }}
ubuntu: ${{ steps.generate.outputs.ubuntu }}
fedora: ${{ steps.generate.outputs.fedora }}
centos: ${{ steps.generate.outputs.centos }}
steps:
- uses: actions/checkout@v3
- id: generate
run: ./.github/scripts/generate_job_matrices.py '${{ github.repository }}'
Debian:
needs: Matrices
uses: ./.github/workflows/sphinx-tuttest.yml
with:
matrix: ${{ needs.Matrices.outputs.debian }}
latest: true
Ubuntu:
needs: Matrices
uses: ./.github/workflows/sphinx-tuttest.yml
with:
matrix: ${{ needs.Matrices.outputs.ubuntu }}
latest: true
Fedora:
needs: Matrices
uses: ./.github/workflows/sphinx-tuttest.yml
with:
matrix: ${{ needs.Matrices.outputs.fedora }}
latest: true
Centos:
needs: Matrices
uses: ./.github/workflows/sphinx-tuttest.yml
with:
matrix: ${{ needs.Matrices.outputs.centos }}
latest: true

View File

@ -7,6 +7,11 @@ on:
description: 'Distribution to execute tests on' description: 'Distribution to execute tests on'
required: true required: true
type: string type: string
latest:
description: 'Use latest arch-defs packages'
required: false
type: boolean
default: false
jobs: jobs:
@ -37,7 +42,7 @@ jobs:
- name: Install utils - name: Install utils
run: | run: |
case ${{ matrix.os }} in case ${{ matrix.os }} in
ubuntu|debian) apt -qqy update && apt -qqy install git wget locales && locale-gen $LANG ;; debian|ubuntu) apt -qqy update && apt -qqy install git wget locales && locale-gen $LANG ;;
centos) yum -y install git wget ;; centos) yum -y install git wget ;;
fedora) dnf install -y git wget ;; fedora) dnf install -y git wget ;;
esac esac
@ -47,6 +52,23 @@ jobs:
wget https://github.com/antmicro/tuttest/releases/download/v0.2-beta/tuttest -O /usr/bin/tuttest wget https://github.com/antmicro/tuttest/releases/download/v0.2-beta/tuttest -O /usr/bin/tuttest
chmod a+rx /usr/bin/tuttest chmod a+rx /usr/bin/tuttest
- name: Patch package URLs
if: inputs.latest == true
run: |
case ${{ matrix.os }} in
debian|ubuntu)
apt update -qq
apt install -y patch
;;
centos)
yum -y install patch
;;
fedora)
dnf install -y patch
;;
esac
patch -p1 -i .github/latest.patch
- name: Install F4PGA toolchain - name: Install F4PGA toolchain
run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}} run: bash .github/scripts/install-toolchain.sh ${{matrix.fpga-fam}} ${{matrix.os}}