-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (43 loc) · 1.21 KB
/
linux-build.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
on: [push]
name: build-linux_amd64
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: build
uses: actions-rs/cargo@v1
with:
command: build
- name: test
uses: actions-rs/cargo@v1
with:
command: test
- name: lint
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: e2e-test
run: |
sudo apt-get install zsh fish -y
echo "testing bash"
bash scripts/e2e-test.sh bash
echo "testing zsh"
zsh scripts/e2e-test.sh zsh
echo "testing fish"
fish scripts/e2e-test.fish fish
- name: build-release
if: startsWith(github.ref, 'refs/tags/')
run: |
cargo build --release
cp ./target/release/tome ./target/release/tome-linux_amd64
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./target/release/tome-linux_amd64
token: ${{ secrets.GITHUB_TOKEN }}
draft: true