Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/build-and-push-apptainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build and push Apptainer images

on:
push:
branches: [main]
paths:
- 'apptainer/*.def'
- '.github/workflows/build-and-push-apptainer.yml'
Expand All @@ -18,15 +19,19 @@ jobs:
matrix:
image: [jureca, leonardo, lumi]
name: Build & Publish SIF Artifact (${{ matrix.image }})
runs-on:
- runs-on=${{github.run_id}}/family=i7ie
runs-on: "runs-on=${{ github.run_id }}/family=i7ie.large/spot=false"
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: check disk space
run: |
echo "Disk info:"
df -h

- name: Install Apptainer
run: |
sudo apt-get update
Expand All @@ -37,7 +42,7 @@ jobs:

- name: Build SIF from definition file
run: |
apptainer --verbose build --mksquashfs-args="-comp gzip -Xcompression-level 1" --fakeroot eval_env-${{ matrix.image }}.sif apptainer/${{ matrix.image }}.def
sudo apptainer --verbose build --mksquashfs-args="-comp gzip -Xcompression-level 1" eval_env-${{ matrix.image }}.sif apptainer/${{ matrix.image }}.def

- name: Install Hugging Face Hub CLI
run: pip install --upgrade "huggingface_hub"
Expand Down
Loading