Skip to content

Commit

Permalink
feat(actions): init actions
Browse files Browse the repository at this point in the history
  • Loading branch information
SpikeHD committed Sep 24, 2023
1 parent 7d9fc5a commit 44d6954
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build

on:
push:
paths:
- '.github/workflows/build.yml'
- 'package.json'
- 'backend/**/*'
- 'frontend/**/*'
pull_request:
paths:
- '.github/workflows/build.yml'
- 'package.json'
- 'backend/**/*'
- 'frontend/**/*'

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.platform }}

strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest, macos-latest]

steps:
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- uses: actions/checkout@v2

- name: Install dependencies
run: cd frontend && bun install

- name: Build
run: cd .. && bun run build

- name: Upload
uses: actions/upload-artifact@v2
with:
name: procchi
path: backend/target/release/{procchi,procchi.exe}
6 changes: 3 additions & 3 deletions backend/src/request_data.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub struct MemoryHistoryRequest {}
pub struct _MemoryHistoryRequest {}

pub struct CPUHistoryRequest {}
pub struct _CPUHistoryRequest {}

pub struct NetworkHistoryRequest {}
pub struct _NetworkHistoryRequest {}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "procchi",
"scripts": {
"start": "cd ./frontend && bun run build && cd ../backend && cargo run -- -u test -k test"
"start": "cd ./frontend && bun run build && cd ../backend && cargo run -- -u test -k test",
"build": "cd ./frontend && bun run build && cd ../backend && cargo build --release"
}
}

0 comments on commit 44d6954

Please sign in to comment.