name: build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: -- --nocapture
- name: Artifact
uses: actions/upload-artifact@v3
with:
name: vps.linux
path: target/release/vps