Skip to content

Commit

Permalink
Merge pull request #3 from Xiphoseer/dev
Browse files Browse the repository at this point in the history
Release 0.3.1 (2nd try)
  • Loading branch information
Xiphoseer authored Mar 1, 2021
2 parents 93994c1 + c8982c3 commit 857d678
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/rust.yml → .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name: Build
name: Release Build

on:
push:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'mappings/**'
pull_request:
branches: [ main ]
paths-ignore:
- 'docs/**'
- 'mappings/**'

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -39,10 +34,8 @@ jobs:
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
run: cargo test --verbose
- name: Build
run: cargo build --verbose --release
run: cargo build --release
if: github.ref == 'refs/heads/main'
- name: Upload files (windows)
uses: actions/[email protected]
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test

on:
push:
branches: [ dev ]
paths-ignore:
- 'docs/**'
- 'mappings/**'

env:
CARGO_TERM_COLOR: always

jobs:
build:

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

strategy:
matrix:
os: [ubuntu, windows, macOS]

steps:
- uses: actions/checkout@v2
- name: Cache cargo directories
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo target dir
if: matrix.os != 'macOS'
uses: actions/cache@v2
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run tests
run: cargo test

0 comments on commit 857d678

Please sign in to comment.