Skip to content

Commit

Permalink
adds rust binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
reederc42 committed Dec 1, 2023
1 parent 064a6b0 commit a7c947d
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on:
Expand All @@ -20,12 +17,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '21.x'

- name: Install
run: npm install --omit=dev
working-directory: ./ui

- name: Lint
run: npm run lint
working-directory: ./ui

- name: Test
run: npm run test
working-directory: ./ui

- name: Build
run: npm run build
working-directory: ./ui
27 changes: 27 additions & 0 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Rust CI

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

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
override: true

- name: Lint
run: cargo clippy

- name: Test
run: cargo test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
name = "wiki"
version = "0.1.0"
edition = "2021"
default-run = "wiki"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
3 changes: 3 additions & 0 deletions src/bin/tools.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, tools!");
}
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

0 comments on commit a7c947d

Please sign in to comment.