Skip to content

Commit

Permalink
ci: setup
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 13, 2024
1 parent ec68138 commit 356f84e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: rustup show
- run: nix profile install --inputs-from . 'nixpkgs-unstable#go_1_23' '.#rust'
- run: go generate ./go/...
- run: go test -v ./go/...

Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: rustup show
- run: nix profile install --inputs-from . 'nixpkgs-unstable#go_1_23' '.#rust'
- run: go generate ./go/...
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
Expand Down
19 changes: 10 additions & 9 deletions flake.lock

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

17 changes: 16 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
];

inputs.nixify.inputs.nixlib.follows = "nixlib";
inputs.nixify.url = "github:rvolosatovs/nixify";
inputs.nixify.url = "github:rvolosatovs/nixify/fix/target-rustflags";
inputs.nixlib.url = "github:nix-community/nixpkgs.lib";
inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.wit-deps.inputs.nixify.follows = "nixify";
Expand Down Expand Up @@ -75,6 +75,10 @@

doCheck = false; # testing is performed in checks via `nextest`

build.packages = [
"west-sys"
];

targets.arm-unknown-linux-gnueabihf = false;
targets.arm-unknown-linux-musleabihf = false;
targets.armv7-unknown-linux-gnueabihf = false;
Expand Down Expand Up @@ -141,6 +145,16 @@
];
};

withPackages = {
hostRustToolchain,
packages,
...
}:
packages
// {
rust = hostRustToolchain;
};

withDevShells = {
devShells,
pkgs,
Expand All @@ -150,6 +164,7 @@
buildInputs = [
pkgs.wit-deps

pkgs.pkgsUnstable.cargo-audit
pkgs.pkgsUnstable.go_1_23
pkgs.pkgsUnstable.wasm-tools
pkgs.pkgsUnstable.wasmtime
Expand Down

0 comments on commit 356f84e

Please sign in to comment.