Skip to content

Commit 7fb6542

Browse files
committed
wip
1 parent 014cbb4 commit 7fb6542

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,46 @@ jobs:
3535

3636
- uses: crystal-lang/install-crystal@v1
3737
with:
38-
crystal: 1.19
38+
crystal: 1.14
3939

4040
- name: Install dependencies
4141
run: shards install
4242

4343
- name: Run tests
4444
run: crystal spec
4545

46+
benchmaks:
47+
runs-on: ubuntu-latest
48+
steps:
49+
- uses: actions/checkout@v4
50+
with:
51+
fetch-depth: 0
52+
53+
- name: Create /app symlink
54+
run: sudo ln -s $GITHUB_WORKSPACE /app
55+
56+
- name: Install dependencies for tmux and benchmarks
57+
run: sudo apt-get update && sudo apt-get install -y libevent-dev libncurses-dev build-essential bison pkg-config hyperfine
58+
59+
- name: Cache tmux installations
60+
uses: actions/cache@v4
61+
with:
62+
path: /opt/tmux-*
63+
key: tmux-versions-${{ hashFiles('spec/install-tmux-versions.sh') }}
64+
65+
- name: Install tmux versions
66+
run: sudo bash spec/install-tmux-versions.sh
67+
68+
- name: Symlink use-tmux.sh
69+
run: sudo ln -s $GITHUB_WORKSPACE/spec/use-tmux.sh /opt/use-tmux.sh
70+
71+
- uses: crystal-lang/install-crystal@v1
72+
with:
73+
crystal: 1.14
74+
75+
- name: Install dependencies
76+
run: shards install
77+
4678
- name: Fetch master branch
4779
run: git fetch origin master:master && git fetch origin develop:develop
4880

0 commit comments

Comments
 (0)