Skip to content

chore(release): v0.1.13 #75

chore(release): v0.1.13

chore(release): v0.1.13 #75

Workflow file for this run

name: build
on:
pull_request:
branches:
- master
- main
push:
branches:
- master
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install cargo plugins
run: cargo install cargo-rpm cargo-deb
continue-on-error: true
- name: Build
run: cargo build
- name: Build deb package
run: cargo deb
- name: Build rpm package
run: cargo rpm build
- uses: actions/upload-artifact@v2
with:
name: netbox2netshot-${{ github.sha }}
path: target/debug/netbox2netshot
- uses: actions/upload-artifact@v2
with:
name: netbox2netshot-${{ github.sha }}.rpm
path: target/release/rpmbuild/RPMS/x86_64/*.rpm
- uses: actions/upload-artifact@v2
with:
name: netbox2netshot-${{ github.sha }}.deb
path: target/debian/*.deb