2020-12-22 18:35:49 -06:00
|
|
|
name: Build docker CI images
|
2021-01-21 17:40:09 -06:00
|
|
|
on:
|
|
|
|
- workflow_dispatch
|
2020-12-22 18:35:49 -06:00
|
|
|
jobs:
|
|
|
|
base_images:
|
|
|
|
name: Push Docker images
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: Build base
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./docker/Dockerfile.base
|
|
|
|
push: true
|
2021-01-20 15:20:12 -06:00
|
|
|
tags: ghcr.io/lnis-uofu/openfpga-build-base:latest
|
|
|
|
- name: Build environment image
|
2020-12-22 18:35:49 -06:00
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
2021-01-20 15:20:12 -06:00
|
|
|
file: ./docker/Dockerfile.env
|
2020-12-22 18:35:49 -06:00
|
|
|
push: true
|
2021-01-20 15:20:12 -06:00
|
|
|
tags: ghcr.io/lnis-uofu/openfpga-env:latest
|
2020-12-22 18:35:49 -06:00
|
|
|
compiler_images:
|
|
|
|
name: Build ${{ matrix.compiler }} compiler image
|
|
|
|
needs: base_images
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
compiler:
|
|
|
|
- gcc-5
|
|
|
|
- gcc-6
|
|
|
|
- gcc-7
|
|
|
|
- gcc-8
|
|
|
|
- gcc-9
|
2021-01-04 12:31:14 -06:00
|
|
|
- clang-6.0
|
2020-12-22 18:35:49 -06:00
|
|
|
- clang-8
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
password: ${{ secrets.CR_PAT }}
|
|
|
|
- name: Build ${{ matrix.compiler }} image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./docker/Dockerfile.${{ matrix.compiler }}
|
|
|
|
push: true
|
2021-01-20 15:20:12 -06:00
|
|
|
tags: ghcr.io/lnis-uofu/openfpga-build-${{ matrix.compiler }}:latest
|