-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 996 Bytes
/
rust.yml
File metadata and controls
42 lines (38 loc) · 996 Bytes
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: Rust
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [ published ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- run: rustup update stable
- name: Build
run: cargo build --release --verbose
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: proxy-${{ runner.OS }}
path: target/release/proxy*
publish:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- name: Publish to Docker
uses: jerray/publish-docker-action@master
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: spectacles/proxy
auto_tag: true