Skip to content

Commit

Permalink
Merge pull request #78 from jjcomer/cache-invalid-envs
Browse files Browse the repository at this point in the history
Don't query invalid environments
  • Loading branch information
jjcomer authored Oct 26, 2023
2 parents 45914c9 + 07b0844 commit b596974
Show file tree
Hide file tree
Showing 21 changed files with 1,707 additions and 847 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,18 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
profile: minimal
components: clippy
- name: Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.target }}
- name: Install Cross
uses: actions-rs/[email protected]
with:
Expand All @@ -89,20 +93,20 @@ jobs:
with:
use-cross: true
command: clippy
args: +${{ matrix.toolchain }} --target ${{ matrix.target }} -- -D warnings
args: --target ${{ matrix.target }} -- -D warnings
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
use-cross: true
args: +${{ matrix.toolchain }} --target ${{ matrix.target }}
args: --target ${{ matrix.target }}
- name: Test
uses: actions-rs/cargo@v1
if: matrix.testable
with:
command: test
use-cross: true
args: +${{ matrix.toolchain }} --target ${{ matrix.target }}
args: --target ${{ matrix.target }}

fmt:
name: Format
Expand All @@ -117,6 +121,8 @@ jobs:
default: true
profile: minimal
components: rustfmt
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Format
uses: actions-rs/cargo@v1
with:
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
profile: minimal
- name: Rust Cache
uses: Swatinem/[email protected]
with:
key: ${{ matrix.target }}
- name: Archive Release
uses: taiki-e/upload-rust-binary-action@v1
with:
Expand Down
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,27 @@
# Avoid checking in db files
*.db
*.json

# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"WhiteSource Advise.Diff.BaseBranch": "master",
"cSpell.words": [
"actix"
]
}
Loading

0 comments on commit b596974

Please sign in to comment.