Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/device-identity.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Test device identity"
on:
push:
branches:
- main
- dev
- 'release/**'
- 'stable/**'
paths-ignore:
- '*.md'
- 'LICENSE'
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUSTC_WRAPPER: "sccache"
SCCACHE_GHA_ENABLED: "true"
SQLX_OFFLINE: "1"
jobs:
test-windows:
name: Windows device identity
runs-on:
- self-hosted
- X64
- Windows
- noad
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
submodules: recursive
- name: Install Rust stable
uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
- name: Setup sccache
uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11
- name: Run tests
working-directory: src-tauri/
shell: cmd
run: |
cargo test -p device-identity --locked
32 changes: 16 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion nix/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# add development-related cargo tooling
rustToolchain = pkgs.rust-bin.stable.latest.default.override {
extensions = ["rust-analyzer" "rust-src" "rustfmt" "clippy"];
targets = ["x86_64-apple-darwin" "aarch64-apple-darwin" "x86_64-pc-windows-gnu"];
targets = ["x86_64-apple-darwin" "aarch64-apple-darwin" "x86_64-pc-windows-gnu" "x86_64-pc-windows-msvc"];
};

# nightly rustfmt, needed only for the unstable import-grouping options that
Expand Down Expand Up @@ -52,6 +52,7 @@ in
fmtImports
sqlx-cli
cargo-nextest
cargo-xwin
vtsls
trivy
desktop-file-utils
Expand Down
Loading
Loading