Trying to merge artifact_regression_tests and docker_distribution

This commit is contained in:
Ganesh Gore 2021-01-24 00:06:15 -07:00
parent a4206e6cfc
commit fba6996d59
1 changed files with 33 additions and 23 deletions

View File

@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
outputs: outputs:
# this is output as string, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs # this is output as string, see https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idoutputs
source_modified: ${{ steps.changes.outputs.status_code == '0' }} source_modified: ${{ steps.changes.outputs.status_code }}
steps: steps:
- name: Checkout OpenFPGA repo - name: Checkout OpenFPGA repo
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -126,12 +126,12 @@ jobs:
ccache -z ccache -z
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build # - name: Build
working-directory: build # working-directory: build
shell: bash # shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>" # # Execute the build. You can specify a specific target with "--target <NAME>"
run: | # run: |
cmake --build . --config $BUILD_TYPE # cmake --build . --config $BUILD_TYPE
# Check the cache size and see if it is over the limit # Check the cache size and see if it is over the limit
- name: Check ccache size - name: Check ccache size
@ -142,23 +142,24 @@ jobs:
with: with:
name: openfpga name: openfpga
path: | path: |
abc/abc requirements.txt
abc/libabc.a
ace2/ace # abc/abc
ace2/libace.a # abc/libabc.a
openfpga/libopenfpga.a # ace2/ace
openfpga/openfpga # ace2/libace.a
vpr/libvpr.a # openfpga/libopenfpga.a
vpr/vpr # openfpga/openfpga
yosys/share/ # vpr/libvpr.a
yosys/yosys # vpr/vpr
yosys/yosys-abc # yosys/share/
yosys/yosys-config # yosys/yosys
yosys/yosys-filterlib # yosys/yosys-abc
yosys/yosys-smtbmc # yosys/yosys-config
# yosys/yosys-filterlib
# yosys/yosys-smtbmc
docker_distribution: docker_distribution:
name: Build docker image for distribution name: Build docker image for distribution
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: linux_build needs: linux_build
steps: steps:
@ -179,16 +180,25 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }} password: ${{ secrets.CR_PAT }}
- name: Build and push master image - name: Build and push master image
if: ${{ github.ref == 'refs/heads/master' }}
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .
file: ./docker/Dockerfile.master file: ./docker/Dockerfile.master
push: true push: true
tags: ghcr.io/lnis-uofu/openfpga-master:latest tags: ghcr.io/lnis-uofu/openfpga-master:latest
- name: Build and push master image
if: ${{ github.ref != 'refs/heads/master' }}
uses: docker/build-push-action@v2
with:
context: .
file: ./docker/Dockerfile.master
push: true
tags: ghcr.io/lnis-uofu/openfpga-local:latest
artifact_regression_tests: artifact_regression_tests:
name: Regression tests on code changes name: Regression tests on code changes
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
container: ghcr.io/lnis-uofu/openfpga-env container: ghcr.io/lnis-uofu/openfpga-local
needs: linux_build needs: linux_build
strategy: strategy:
fail-fast: false fail-fast: false