[toolchain] Remove non fdiv
config and simplify
#24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker toolchain image | |
on: | |
pull_request: | |
paths: | |
- runtime/toolchain/** | |
- .github/workflows/toolchain.yaml | |
push: | |
branches: [ "main" ] | |
paths: | |
- runtime/toolchain/** | |
- .github/workflows/toolchain.yaml | |
workflow_dispatch: | |
jobs: | |
build-docker: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Free up disk space on Github-hosted runner | |
- name: Disk usage | |
run: df -h | |
- uses: jlumbroso/free-disk-space@v1.3.1 | |
with: | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
- name: Disk usage after freeing up space | |
run: df -h | |
# Actually build the Docker container | |
- uses: actions/checkout@v4 | |
- uses: docker/setup-buildx-action@v3 | |
- name: GHCR Log-in | |
uses: docker/login-action@v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5.3.0 | |
with: | |
context: ${{github.workspace}}/runtime/ | |
file: ${{github.workspace}}/runtime/toolchain/Dockerfile | |
push: true | |
tags: ghcr.io/opencompl/quidditch/toolchain:${{ github.head_ref || github.ref_name }} |