Skip to content

Commit

Permalink
Try to speed up debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Aug 12, 2024
1 parent 9b11c1d commit e8c7c06
Showing 1 changed file with 43 additions and 40 deletions.
83 changes: 43 additions & 40 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,50 +6,50 @@ on:
- 'main'
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push to tag
uses: docker/build-push-action@v3
with:
context: ./docker/gyselalibxx_env
cache-from: type=registry,ref=ghcr.io/gyselax/gyselalibxx_env:latest
pull: true
push: true
tags: ghcr.io/gyselax/gyselalibxx_env:${{ github.sha }}
-
name: Build and push latest
if: github.event_name == 'push' && github.ref_name == 'main'
uses: docker/build-push-action@v3
with:
context: ./docker/gyselalibxx_env
cache-from: type=registry,ref=ghcr.io/gyselax/gyselalibxx_env:latest
pull: true
push: true
tags: ghcr.io/gyselax/gyselalibxx_env:latest
#docker:
# runs-on: ubuntu-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v4
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v2
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v2
# -
# name: Login to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}
# -
# name: Build and push to tag
# uses: docker/build-push-action@v3
# with:
# context: ./docker/gyselalibxx_env
# cache-from: type=registry,ref=ghcr.io/gyselax/gyselalibxx_env:latest
# pull: true
# push: true
# tags: ghcr.io/gyselax/gyselalibxx_env:${{ github.sha }}
# -
# name: Build and push latest
# if: github.event_name == 'push' && github.ref_name == 'main'
# uses: docker/build-push-action@v3
# with:
# context: ./docker/gyselalibxx_env
# cache-from: type=registry,ref=ghcr.io/gyselax/gyselalibxx_env:latest
# pull: true
# push: true
# tags: ghcr.io/gyselax/gyselalibxx_env:latest

tests:
runs-on: ubuntu-latest
needs: docker
#needs: docker
container:
image: ghcr.io/gyselax/gyselalibxx_env:${{ github.sha }}
image: ghcr.io/gyselax/gyselalibxx_env:88cf83ded394a4ecb51b927bd9581a454450fd7d
options: --user root
strategy:
matrix:
Expand All @@ -64,9 +64,12 @@ jobs:
whoami
useradd -m non_sudo_user
su - non_sudo_user
whoami
-
name: Run tests
run: |
whoami
mpiexec --help
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=../toolchains/docker.gyselalibxx_env/${{ matrix.toolchain }} ..
Expand Down

0 comments on commit e8c7c06

Please sign in to comment.