Skip to content

Commit

Permalink
chore: restart working after few years
Browse files Browse the repository at this point in the history
  • Loading branch information
bresilla committed Mar 1, 2024
1 parent c40ddb9 commit ed995a7
Show file tree
Hide file tree
Showing 21 changed files with 431 additions and 292 deletions.
16 changes: 8 additions & 8 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
tidyup
use flake
layout rust
local vimrc
# Automatically sets up your devbox environment whenever you cd into this
# directory via our direnv integration:

eval "$(devbox generate direnv --print-envrc)"


export ENVNAME=rust
export CARGO_HOME="/env/cargo"
export ENVNAME=rust
export PATH="$PWD/target/debug:$PATH"
unset GITHUB_TOKEN

export_alias build 'clear && cd $(git rev-parse --show-toplevel) && cargo build'
export_alias just_build 'clear && cd $(git rev-parse --show-toplevel) && cargo build'
export_alias run '$(git rev-parse --show-toplevel)/target/debug/$(basename $(git rev-parse --show-toplevel)) $@'

export_alias binsize 'filei=$(git rev-parse --show-toplevel)/target/debug/$(basename $(git rev-parse --show-toplevel)); [[ -f $filei ]] && du -h $filei | cut -f1'
25 changes: 25 additions & 0 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: book

on:
push:
branches:
- develop

jobs:
deploy_site:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'

- run: mdbook build book --dest-dir ../docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release

on:
release:
types: [created]
jobs:
release:
name: release ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/rust-build.action@v1.4.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
TOOLCHAIN_VERSION : 1.70.0
RUSTTARGET: ${{ matrix.target }}
ARCHIVE_TYPES: "zip tar.gz"
# ARCHIVE_NAME: "roc_${{ matrix.target }}"
19 changes: 0 additions & 19 deletions .github/workflows/rust.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: tests

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
.dirnev
.direnv
flake.lock
.devbox
.direnv
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"hide-files.files": []
}
19 changes: 0 additions & 19 deletions CHANGELOG.md

This file was deleted.

21 changes: 0 additions & 21 deletions CONTRIBUTING.md

This file was deleted.

Loading

0 comments on commit ed995a7

Please sign in to comment.