-
Notifications
You must be signed in to change notification settings - Fork 12
85 lines (69 loc) · 2.17 KB
/
rust.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: 🦀 Running Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
Linter:
runs-on: ubuntu-latest
name: 🧹 Linter
steps:
- name: 🚀 actions/checkout@v2
uses: actions/checkout@v2
- name: 🕵️ Run linter
run: cargo clippy
# MacOS:
# name: 🍎 MacOS
# runs-on: macos-latest
# steps:
# - name: 🚀 actions/checkout@v2
# uses: actions/checkout@v2
# - name: ⬇ Install yt-dlp
# run: |
# wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O yt-dlp
# chmod a+rx yt-dlp
# echo "$(pwd)" >> $GITHUB_PATH
# - name: ⬇️ Install ffmpeg
# run: |
# wget https://evermeet.cx/ffmpeg/get/zip -qO ffmpeg.zip
# unzip ffmpeg.zip
# - name: ⬇️ Install task
# run: brew install go-task/tap/go-task
# - name: 🕵️ Run tests
# run: task test
# Ubuntu:
# runs-on: ubuntu-latest
# name: 🐧 Ubuntu
# steps:
# - name: 🚀 actions/checkout@v2
# uses: actions/checkout@v2
# - name: ⬇️ Install yt-dlp
# run: |
# wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O yt-dlp
# chmod a+rx yt-dlp
# echo "$(pwd)" >> $GITHUB_PATH
# - name: ⬇️ Install ffmpeg
# run: sudo apt install -y ffmpeg
# - name: ⬇️ Install task
# run: |
# curl -sL "https://github.com/go-task/task/releases/download/v3.9.0/task_linux_amd64.tar.gz" | tar xz
# sudo mv task /usr/local/bin
# - name: 🕵️ Run tests
# run: task test
Windows:
runs-on: self-hosted
name: 🏳️🌈 Windows
steps:
- name: 🚀 actions/checkout@v2
uses: actions/checkout@v2
- name: ⬇️ Install chocolatey
uses: crazy-max/ghaction-chocolatey@v1
with:
args: -h
- name: ⬇️ Install yt-dlp
run: choco install yt-dlp
- name: ⬇️ Install ffmpeg
run: choco install ffmpeg
- name: ⬇️ Install task
run: choco install go-task
- name: 🕵️ Run tests
run: task test