Skip to content

Commit

Permalink
ci: remove actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yanganto committed Apr 8, 2024
1 parent a387b22 commit 8e1e7ec
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 50 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,7 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [ nightly, beta, stable ]
steps:
- uses: actions/checkout@v2
- name: Install rust ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: All features
uses: actions-rs/cargo@v1
with:
command: check
args: --workspace --all-targets --all-features
msrv-build:
name: "toolchains (msrv)"
runs-on: ubuntu-latest
toolchain: [ nightly, beta, stable, msrv ]
steps:
- name: checkout
uses: actions/checkout@v4
Expand All @@ -97,5 +82,5 @@ jobs:
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Build rgb-core
run: nix develop -c cargo build
- name: Check rgb-core
run: nix develop ".#${{ matrix.toolchain }}" -c cargo check --workspace --all-targets --all-features
21 changes: 0 additions & 21 deletions flake.lock

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

38 changes: 27 additions & 11 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,10 @@
inputs.flake-utils.follows = "flake-utils";
};

crane = {
url = "github:ipetkov/crane";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};

flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, crane, rust-overlay, nixpkgs, flake-utils }:
outputs = { self, rust-overlay, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import rust-overlay) ];
Expand All @@ -28,10 +22,32 @@
in
with pkgs;
{
devShell = mkShell {
buildInputs = [
rust-bin.stable."${cargoToml.package."rust-version"}".default
];
devShells = rec {
default = msrv;

msrv = mkShell {
buildInputs = [
rust-bin.stable."${cargoToml.package."rust-version"}".default
];
};

stable = mkShell {
buildInputs = [
rust-bin.stable.latest.default
];
};

beta = mkShell {
buildInputs = [
rust-bin.beta.latest.default
];
};

nightly = mkShell {
buildInputs = [
rust-bin.nightly.latest.default
];
};
};
}
);
Expand Down

0 comments on commit 8e1e7ec

Please sign in to comment.