-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.09 KB
/
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
44
45
46
name: Development build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
dev_build:
name: "Development build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
target: x86_64-unknown-linux-gnu
toolchain: stable
profile: minimal
- name: Release build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Uppload release artifacts
uses: actions/upload-artifact@v3
with:
name: tsp
path: ./target/release/tsp
dev_release:
name: Development release
needs: dev_build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Create development release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Development build"
files: "./**/*"