Skip to content

Commit fcfa46e

Browse files
committed
update publish workflow
1 parent d480154 commit fcfa46e

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,40 @@ on:
66
jobs:
77
publish:
88
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
9-
runs-on: quantecon-gpu
10-
container:
11-
image: ghcr.io/quantecon/lecture-python-container:cuda-12.6.0-anaconda-2024-10-py312-b
12-
options: --gpus all
9+
runs-on: "runs-on=${{ github.run_id }}/family=g4dn.2xlarge/image=ubuntu24-gpu-x64/disk=large"
1310
steps:
1411
- name: Checkout
1512
uses: actions/checkout@v4
16-
# Check nvidia-smi
17-
- name: Check nvidia drivers
13+
- name: Setup Anaconda
14+
uses: conda-incubator/setup-miniconda@v3
15+
with:
16+
auto-update-conda: true
17+
auto-activate-base: true
18+
miniconda-version: 'latest'
19+
python-version: "3.12"
20+
environment-file: environment.yml
21+
activate-environment: quantecon
22+
- name: Install jax (and install checks for GPU)
1823
shell: bash -l {0}
1924
run: |
25+
pip install -U "jax[cuda12]"
26+
python --version
27+
python scripts/test-jax-install.py
2028
nvidia-smi
29+
- name: Install latex dependencies
30+
shell: bash -l {0}
31+
run: |
32+
sudo apt-get -qq update
33+
sudo apt-get install -y \
34+
texlive-latex-recommended \
35+
texlive-latex-extra \
36+
texlive-fonts-recommended \
37+
texlive-fonts-extra \
38+
texlive-xetex \
39+
latexmk \
40+
xindy \
41+
dvipng \
42+
cm-super
2143
- name: Display Conda Environment Versions
2244
shell: bash -l {0}
2345
run: conda list

0 commit comments

Comments
 (0)