-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (41 loc) · 1.13 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
name: Build
on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
- name: Install libxcb components
run: sudo apt-get install libxcb-render0-dev libxcb-xfixes0-dev
- name: Build
run: make all zip
- name: release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
draft: true
omitBody: true
omitBodyDuringUpdate: true
omitName: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true
removeArtifacts: false
replacesArtifacts: true
artifacts: "build/practice-linux.zip"
token: ${{ secrets.GITHUB_TOKEN }}