Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

extracted cmd exec fn #16

extracted cmd exec fn

extracted cmd exec fn #16

Workflow file for this run

name: Continuous Integration
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-x86_64-unknown-linux-musl-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-x86_64-unknown-linux-musl-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: cargo install --force cargo-deb
- name: "Build project for VyOS"
run: |
rustup target add x86_64-unknown-linux-musl
cargo build --target x86_64-unknown-linux-musl --release
- name: "Build debian package"
run: cargo deb --no-build --no-strip --target x86_64-unknown-linux-musl
- name: "Rename artifacts"
run: |
mv target/x86_64-unknown-linux-musl/release/wpm-api-vyos .
mv target/x86_64-unknown-linux-musl/debian/wpm-api-vyos_0.0.1-git_amd64.deb .
- name: "Upload binary artifact"
uses: actions/upload-artifact@v3
with:
name: vyos-wpm-api
path: wpm-api-vyos
- name: "Upload debian package artifact"
uses: actions/upload-artifact@v3
with:
name: vyos-wpm-api-deb
path: wpm-api-vyos_0.0.1-git_amd64.deb