File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 43
43
run : |
44
44
stack --no-terminal build --only-dependencies --test --fast --system-ghc
45
45
46
- - name : Build
46
+ - name : Build and install
47
47
run : |
48
- stack --no-terminal build --test --fast --system-ghc --no-run-tests
48
+ stack --no-terminal build --test --fast --system-ghc --no-run-tests --copy-bins --local-bin-path=.
49
+
50
+ - name : Upload build artifact
51
+ uses : actions/upload-artifact@v2
52
+ with :
53
+ name : plc-llvm
54
+ path : ' ./plc-llvm'
55
+ if-no-files-found : error
49
56
50
57
- name : Run tests
51
58
run : |
59
66
check_name : ' tests'
60
67
comment_title : ' Test results'
61
68
fail_on : ' test failures'
69
+
70
+ - name : Upload release
71
+ if : ${{ github.ref == 'refs/heads/master' }}
72
+ uses : svenstaro/upload-release-action@v2
73
+ with :
74
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
75
+ file : ' ./plc-llvm'
76
+ asset_name : ' plc-llvm'
77
+ tag : ' latest-plc-llvm'
78
+ overwrite : true
You can’t perform that action at this time.
0 commit comments