test out using a custom toolchain in a docker image, add cmake emulat… #1
Workflow file for this run
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: toolchain.yaml | |
on: | |
push: | |
paths: | |
- runtime/toolchain/** | |
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/[email protected] | |
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@v2 | |
- uses: docker/setup-buildx-action@v1 | |
- name: GHCR Log-in | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
context: ${{github.workspace}}/runtime/toolchain/ | |
file: ${{github.workspace}}/runtime/toolchain/Dockerfile | |
push: true | |
tags: ghcr.io/opencompl/Quidditch/toolchain:${{ github.ref_name }} |