Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Oct 23, 2024
0 parents commit f6ad52e
Show file tree
Hide file tree
Showing 8 changed files with 4,959 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on: [push, pull_request]

env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
JULIA_PKG_SERVER:
PYTHON:

jobs:
test:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: ['1.10', '1', 'pre']
arch: [x64]
os: [ubuntu-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
arch: ${{ matrix.arch }}
- run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- run: julia -e 'using Pkg; pkg"registry add General [email protected]:aplavin/MyRegistry.git"'
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
54 changes: 54 additions & 0 deletions .github/workflows/ExportPluto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Export Pluto notebooks
on:
workflow_dispatch:

env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
PYTHON:

jobs:
build-and-deploy:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install Julia
uses: julia-actions/setup-julia@v2
with:
version: 1

- run: sudo apt-get update && sudo apt-get install -y xorg-dev mesa-utils xvfb libgl1 freeglut3-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev xsettingsd x11-xserver-utils

- run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}"
- run: julia -e 'using Pkg; pkg"registry add General [email protected]:aplavin/MyRegistry.git"'

- name: Run & export Pluto notebooks
run: |
DISPLAY=:0 xvfb-run -s '-screen 0 1024x768x24' julia -e 'using Pkg
Pkg.activate(mktempdir())
Pkg.add([
Pkg.PackageSpec(name="PlutoSliderServer", version="0.3.2-0.3"),
Pkg.PackageSpec(name="MsgPack"),
])
import PlutoSliderServer
PlutoSliderServer.github_action(".";
Export_cache_dir="pluto_state_cache",
Export_baked_notebookfile=false,
Export_baked_state=false,
# more parameters can go here
)'
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Docs for MakieExtra.jl

This repo is separate from https://github.com/JuliaAPlavin/MakieExtra.jl to keep that git repo small, without any image/video examples.
Binary file added notebooks/datacursor.mp4
Binary file not shown.
Loading

0 comments on commit f6ad52e

Please sign in to comment.