feat: add cargo make scripts #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
strategy: | |
fail-fast: true | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
include: | |
- os: ubuntu-latest | |
file: pocket-relay-client | |
file_name: Ubuntu Build | |
- os: windows-latest | |
file: pocket-relay-client.exe | |
file_name: Windows Build | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build Client | |
run: cargo build --verbose | |
- name: Run tests | |
run: cargo test --verbose | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.file_name }} | |
path: "./target/debug/${{ matrix.file }}" |