-
-
Notifications
You must be signed in to change notification settings - Fork 80
71 lines (53 loc) · 1.87 KB
/
demo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Demo
on:
pull_request:
workflow_dispatch:
permissions:
contents: write
jobs:
generate:
runs-on: ubuntu-24.04
env:
CXX: g++-13
steps:
- uses: actions/checkout@v4
- name: Setup dependencies
uses: ./.github/actions/setup-ubuntu-deps
- name: Print versions
run: make versions
- name: Build Cabin
run: make RELEASE=1 -j4
- name: Install Cabin
run: |
make PREFIX="$HOME/.local" install
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
- name: Install ttyd
run: |
wget https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.x86_64 -P "$HOME/.local/bin"
mv "$HOME/.local/bin/ttyd.x86_64" "$HOME/.local/bin/ttyd"
chmod +x "$HOME/.local/bin/ttyd"
- name: Install ffmpeg
run: sudo apt-get update && sudo apt-get install -y ffmpeg
- uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install VHS
run: go install github.com/charmbracelet/vhs@latest
- name: Install Nerd Font
run: |
mkdir -p ~/.local/share/fonts
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/FiraCode.zip
unzip FiraCode.zip -d ~/.local/share/fonts/
fc-cache -fv
- name: Install Zsh
run: sudo apt update && sudo apt install -y zsh
- name: Install zsh-syntax-highlighting
run: |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh-syntax-highlighting
echo "source ~/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
- name: Install Starship
run: |
curl -sS https://starship.rs/install.sh | sh -s -- -y
echo 'eval "$(starship init zsh)"' >> ~/.zshrc
- name: Generate and publish a new demo
run: vhs --publish demo.tape