Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "target-cpu=native"]
9 changes: 7 additions & 2 deletions .containerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
!src/
!Cargo.*
README.md
.gitignore
compose.yml
Containerfile
example.png
LICENSE
target/
24 changes: 24 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Rust

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: build with release mode
run: RUSTFLAGS="-Ctarget-cpu=x86-64" cargo build --release
- uses: actions/upload-artifact@v7
with:
path: target/release/grainpit_webserver
archive: false
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
/target
perf.data

# profiling bs
perf.data*
flamegraph.svg
callgrind.out*
Loading
Loading