File tree Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Expand file tree Collapse file tree 1 file changed +34
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Build & test
2
2
on : [push]
3
3
env :
4
- BAZEL_ARGS : --repository_cache=~/repo-cache --disk_cache=~/disk-cache
4
+ BAZEL_REPO_CACHE : ~/repo-cache
5
+ BAZEL_DISK_CACHE : ~/disk-cache
6
+ BAZEL_ARGS : --repository_cache=$BAZEL_REPO_CACHE --disk_cache=$BAZEL_DISK_CACHE
5
7
HADOOP_VERSION : 2.10.1
6
8
SPARK_VERSION : 2.4.8
7
9
SFL4J_VERSION : 1.7.30
19
21
with :
20
22
nix_path : nixpkgs=./nixpkgs.nix
21
23
22
- - run : echo "build --host_platform=@rules_haskell//haskell/platforms:linux_x86_64_nixpkgs" > .bazelrc.local
24
+ - name : Configure
25
+ run : |
26
+ mkdir -p ~/repo-cache ~/disk-cache
27
+ echo "build --host_platform=@rules_haskell//haskell/platforms:linux_x86_64_nixpkgs" > .bazelrc.local
28
+
29
+ - name : Mount Bazel cache
30
+ uses : actions/cache/restore@v3
31
+ if : github.ref != 'refs/heads/master'
32
+ id : restore-cache
33
+ with :
34
+ path : |
35
+ ~/repo-cache
36
+ ~/disk-cache
37
+ key : repo-cache-${{ runner.os }}-haskell-nixpkgs-${{ env.cache-version }}-${{ github.run_id }}-${{ github.run_attempt }}
38
+ restore-keys : |
39
+ repo-cache-${{ runner.os }}-haskell-nixpkgs-${{ env.cache-version }}-
40
+
41
+ # - name: Save Bazel cache
42
+ # uses: actions/cache/save@v3
43
+ # id: save-cache
44
+ # with:
45
+ # path: |
46
+ # ~/repo-cache
47
+ # ~/disk-cache
48
+ # key: repo-cache-${{ runner.os }}-haskell-nixpkgs-${{ env.cache-version }}-${{ github.run_id }}-${{ github.run_attempt }}
49
+ # # Remove leading and trailing whitespaces
50
+ # invalidate-output-patterns: |
51
+ # (?i)^\s*.*$
52
+
53
+
54
+ # - run: echo "build --host_platform=@rules_haskell//haskell/platforms:linux_x86_64_nixpkgs" > .bazelrc.local
23
55
- run : nix-shell --pure --run 'bazel build //apps/hello:sparkle-example-hello_deploy.jar'
24
56
- run : nix-shell --pure --run 'bazel build //apps/rdd-ops:sparkle-example-rddops_deploy.jar'
25
57
- run : nix-shell --pure --run 'bazel build //apps/dataframe:sparkle-example-dataframe_deploy.jar'
You can’t perform that action at this time.
0 commit comments