test delete more #12
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: SingularityQuicktest | |
on: | |
pull_request: | |
branches: [ apptainer_testing ] | |
push: | |
branches: [ apptainer_testing ] | |
jobs: | |
build_and_test: | |
name: Build and test Singularity container | |
runs-on: ubuntu-22.04 | |
steps: | |
# - name: Maximize build space | |
# uses: easimon/maximize-build-space@master | |
# with: | |
# root-reserve-mb: '28000' | |
# swap-size-mb: '128' | |
# remove-docker-images: 'true' | |
# remove-android: 'true' | |
# remove-haskell: 'true' | |
# remove-codeql: 'true' | |
# remove-dotnet: 'true' | |
- name: Check docker images | |
run: docker images | |
- name: Prune stuff | |
run: | | |
docker image prune -a -f | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /usr/local/lib/android | |
- name: Check docker images | |
run: docker images | |
- name: Check free space | |
run: df -h | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker | |
uses: docker/setup-buildx-action@v2 | |
with: | |
driver: docker | |
- name: Set up Singularity | |
run: | | |
sudo add-apt-repository -y ppa:apptainer/ppa | |
sudo apt update | |
sudo apt install -y apptainer | |
alias singularity="apptainer" | |
- name: Build Docker image | |
uses: docker/build-push-action@v4 | |
with: | |
file: docker/Dockerfile.finn | |
context: . | |
load: true | |
no-cache: true | |
tags: finn_docker_export:latest | |
- name: Check free space | |
run: df -h | |
- name: Clean Docker build cache | |
run: echo 'y' | docker builder prune | |
- name: Check free space | |
run: df -h | |
- name: Check environment | |
run: | | |
echo $PWD | |
echo $HOME | |
echo $GITHUB_WORKSPACE | |
echo $APPTAINER_TMPDIR | |
echo $APPTAINER_CACHEDIR | |
echo $TMPDIR | |
- name: Check folders | |
run: | | |
ls -la / | |
ls -la $GITHUB_WORKSPACE | |
ls -la /run/user/1001 | |
- name: Build Singularity image | |
run: | | |
mkdir $GITHUB_WORKSPACE/singularity_tmp | |
mkdir $GITHUB_WORKSPACE/singularity_cache | |
export APPTAINER_TMPDIR=$GITHUB_WORKSPACE/singularity_tmp | |
export APPTAINER_CACHEDIR=$GITHUB_WORKSPACE/singularity_cache | |
singularity build --disable-cache finn_singularity_image.sif docker-daemon://finn_docker_export:latest | |
continue-on-error: true | |
- name: Check folders | |
run: | | |
ls -la $GITHUB_WORKSPACE | |
ls -la $GITHUB_WORKSPACE/singularity_tmp | |
ls -la $GITHUB_WORKSPACE/singularity_cache/cache | |
- name: Check free space | |
run: df -h | |
- name: Run quicktest | |
run: | | |
export APPTAINER_TMPDIR=$GITHUB_WORKSPACE/singularity_tmp | |
export APPTAINER_CACHEDIR=$GITHUB_WORKSPACE/singularity_cache | |
export FINN_SINGULARITY=finn_singularity_image.sif | |
./run-docker.sh quicktest | |
- name: Check free space | |
run: df -h |