Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.0' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweattypalms committed Jun 24, 2024
2 parents edfaef7 + 485d826 commit 86d7c5b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Rust nightly
run: rustup override set nightly

- name: Cache cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo build
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Build
env:
CARGO_MANIFEST_DIR: ${{ github.workspace }}
run: cargo build --verbose

- name: Run tests
env:
CARGO_MANIFEST_DIR: ${{ github.workspace }}
run: cargo test --verbose

0 comments on commit 86d7c5b

Please sign in to comment.