Skip to content

Commit

Permalink
All one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Dec 29, 2023
1 parent 457eb3d commit 1cb5bff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 42 deletions.
40 changes: 14 additions & 26 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,25 @@
name: 'Compile and upload document'
on: [push, pull_request]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build_docker_image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: ./ci
push: true
tags: ghcr.io/icepack/dual-problems:latest

build_latex:
runs-on: ubuntu-latest
needs: build_docker_image
container:
image: ghcr.io/icepack/dual-problems:latest
image: docker.io/firedrakeproject/firedrake-vanilla:2023-11
options: --user root
steps:
- name: Activate Firedrake virtual environment
run: |
. /home/firedrake/firedrake/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install dependencies
run: |
apt update
apt install -yq patchelf texlive texlive-fonts-extra
pip install netCDF4
pip install git+https://github.com/firedrakeproject/irksome.git
pip install git+https://github.com/icepack/Trilinos.git
pip install git+https://github.com/icepack/pyrol.git
pip install git+https://github.com/icepack/icepack.git
- name: Check out git repository
uses: actions/checkout@v3
- name: Install Python package
Expand Down
16 changes: 0 additions & 16 deletions ci/Dockerfile

This file was deleted.

0 comments on commit 1cb5bff

Please sign in to comment.