Skip to content

Commit

Permalink
Merge pull request #1 from osta-lang/dev
Browse files Browse the repository at this point in the history
Added Workflow for Build and Test
  • Loading branch information
JohanVonElectrum authored Apr 25, 2024
2 parents 6c6c85b + d9b210e commit 9bc0837
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rust

on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ${{ matrix.os }}

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

steps:
- uses: actions/[email protected]
- name: Cache
uses: actions/[email protected]
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build
run: cargo build --verbose
- name: Run tests
working-directory: ./test
run: cargo test --verbose

0 comments on commit 9bc0837

Please sign in to comment.