Skip to content

Commit

Permalink
[workflows] separate wf for each image
Browse files Browse the repository at this point in the history
  • Loading branch information
dglaeser committed Mar 2, 2024
1 parent a6467c1 commit 7f3ddfe
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/build.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: build-clang-image

on:
workflow_dispatch:
inputs:
tag:
description: 'Release tag to build from'
required: false
default: 'llvmorg-18.1.0-rc4'
version:
description: 'Version corresponding to the chosen tag'
required: false
default: '18'

jobs:
build-image:
runs-on: ubuntu-22.04
needs: build-gcc-image
steps:
- name: checkout-repo
uses: actions/checkout@v2

- name: Docker-hub-Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: build-and-push-image
uses: docker/[email protected]
with:
context: .
file: clang/Dockerfile
push: true
tags: dglaeser/compiler-images:clang-${{ github.event.inputs.version }}
target: clang
build-args: |
TAG=${{ github.event.inputs.tag }}
37 changes: 37 additions & 0 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-gcc-image

on:
workflow_dispatch:
inputs:
tag:
description: 'Commit sha to build from'
required: false
default: '46666b9bde5903d80ad8a30f5e7ecb6fc4208290'
version:
description: 'Version corresponding to the chosen tag'
required: false
default: '14'

jobs:
build-gcc-image:
runs-on: ubuntu-22.04
steps:
- name: checkout-repo
uses: actions/checkout@v2

- name: Docker-hub-Login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: build-and-push-image
uses: docker/[email protected]
with:
context: .
file: gcc/Dockerfile
push: true
tags: dglaeser/compiler-images:gcc-${{ github.event.inputs.version }}
target: gcc
build-args: |
TAG=${{ github.event.inputs.tag }}

0 comments on commit 7f3ddfe

Please sign in to comment.