add clean up step to action #10
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 LLVM and LLVM-MCAD inside Docker | |
on: | |
push: | |
schedule: | |
# Run nightly at 08:00 UTC (aka 00:00 Pacific, aka 03:00 Eastern) | |
- cron: '0 8 * * *' | |
permissions: | |
contents: read # Default everything to read-only | |
env: | |
WORKSPACE_PATH: ${{ github.workspace }} | |
jobs: | |
build: | |
# We need to run self-hosted because the GitHub runners run out of disk space. | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
path: 'LLVM-MCA-Daemon' | |
- name: setup and build inside Docker | |
run: cd LLVM-MCA-Daemon/docker && ./up | |
- name: clean up - delete docker image | |
if: always() # this line is needed to make this action run even if the previous step fails | |
run: docker image rm mcad_dev # remove image after we're done to conserve space | |
#- name: install dependencies | |
# run: sudo ./docker/setup-deps.sh | |
#- name: build LLVM | |
# run: ./docker/setup-llvm.sh | |
#- name: build LLVM-MCA-Daemon | |
# run: ./docker/setup-build.sh | |