Skip to content

Commit

Permalink
REMOVE ME: test binary cache uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
LightAndLight committed Jan 16, 2024
1 parent 8bf682a commit 44d408c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Run tests (pull request)
if: github.event_name == 'pull_request'
run: |
nix \
--option post-build-hook "" \
build .#test-package
export CARGO_HOME=$STATE_DIRECTORY/.cargo
export CARGO_TARGET_DIR=$(realpath --relative-to "$PWD" $STATE_DIRECTORY/target)
nix develop .#tests \
Expand Down
9 changes: 9 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
ipso-cli = (rustPkgs { release = true; }).workspace.ipso-cli {};
ipso-golden = pkgs.haskell.lib.justStaticExecutables (import ./tests/golden { inherit pkgs; });
ipso-shebang = pkgs.haskell.lib.justStaticExecutables (import ./tests/shebang { inherit pkgs; });
test-package = pkgs.stdenv.mkDerivation {
name = "test-package";
unpackPhase = "true";
buildPhase = "true";
installPhase = ''
mkdir $out
echo "test 3" > $out/test
'';
};
};

defaultPackage = packages.ipso-cli;
Expand Down

0 comments on commit 44d408c

Please sign in to comment.