Skip to content

Commit ff437a5

Browse files
committed
build and test in CI
1 parent 86e5061 commit ff437a5

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Build & test scoreman
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install Nix
18+
uses: cachix/[email protected]
19+
- name: Build
20+
run: nix build

flake.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
packages.${system}.default = pkgs.rustPlatform.buildRustPackage {
3131
pname = "scoreman";
3232
version = "1.0.0";
33-
cargoHash = "sha256-Aa92RjvcqoCCIOXoQ1TsIou/0FbLtNyb2OaaJRa90gM=";
33+
cargoHash = "sha256-PeWB4zK2G8DiLxRZSLGJWoNh0PACandjYHhjy2zNG4E=";
3434
src = ./.;
35-
doCheck=false;
3635
};
3736
devShells.${system}.default = pkgs.mkShell {
3837
shellHook = ''

0 commit comments

Comments
 (0)