-
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.25 KB
/
linux.yml
File metadata and controls
42 lines (38 loc) · 1.25 KB
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
name: Linux
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
install-legacy:
name: Install Legacy (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Pre-install yazi binary (avoids slow cargo build)
run: |
YAZI_VER=$(curl -sL "https://api.github.com/repos/sxyazi/yazi/releases/latest" \
| grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/')
wget -q "https://github.com/sxyazi/yazi/releases/download/${YAZI_VER}/yazi-x86_64-unknown-linux-gnu.zip" \
-O /tmp/yazi.zip
unzip -q /tmp/yazi.zip -d /tmp/yazi
sudo cp /tmp/yazi/yazi-x86_64-unknown-linux-gnu/yazi /usr/local/bin/yazi
sudo chmod +x /usr/local/bin/yazi
- name: Run install_and_configure.sh
run: bash install_and_configure.sh
install-bootstrap:
name: Install Bootstrap (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run bootstrap.sh --non-interactive
run: bash bootstrap.sh --non-interactive
test:
name: Tests (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run test suite
run: bash tests/run_tests.sh