Skip to content

Tool classification cmake #307

Tool classification cmake

Tool classification cmake #307

name: "Configure and build"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container
run: docker build -t ghcr.io/ibois-epfl/ttool:latest ${{ github.workspace }}
- name: Push
run: docker push ghcr.io/ibois-epfl/ttool:latest
configure-and-build:
needs: build-container
runs-on: ubuntu-latest
container:
image: ghcr.io/ibois-epfl/ttool:latest
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Configure
run: cmake -B build .
- uses: actions/upload-artifact@v3
if: ${{ failure() }}
with:
name: configure-artifacts
path: build/
retention-days: 1
- name: Build
run: cmake --build build