File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -26,15 +26,12 @@ jobs:
26
26
shell : bash
27
27
run : |
28
28
mv textadept-build/* textadept/src && make -C textadept/src lua
29
- cd textadept/modules/file_diff
30
- make deps && make -j
31
- cd .. && zip -r ../../file_diff.zip file_diff -x "*.zip" "*.h" "*.o" \
32
- "*.def" "*.la" file_diff/.github
29
+ make -C textadept/modules/file_diff release
33
30
- name : Upload artifacts
34
31
uses : actions/upload-artifact@v2
35
32
with :
36
33
name : artifacts
37
- path : file_diff.zip
34
+ path : textadept/modules/ file_diff.zip
38
35
release :
39
36
runs-on : ubuntu-latest
40
37
needs : build
56
53
tag : latest
57
54
allowUpdates : true
58
55
body : Latest automated build (ignore github-actions' release date)
59
- artifacts : file_diff.zip
56
+ artifacts : textadept/modules/ file_diff.zip
60
57
token : ${{ secrets.GITHUB_TOKEN }}
61
58
cleanup :
62
59
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -61,3 +61,18 @@ diff_match_patch_zip = 7f95b37e554453262e2bcda830724fc362614103.zip
61
61
$(diff_match_patch_zip ) :
62
62
wget https://github.com/leutloff/diff-match-patch-cpp-stl/archive/$@
63
63
diff_match_patch.h : | $(diff_match_patch_zip ) ; unzip -j $| "* /$@ "
64
+
65
+ # Releases.
66
+
67
+ ifneq (, $(shell hg summary 2>/dev/null) )
68
+ archive = hg archive -X ".hg*" $(1 )
69
+ else
70
+ archive = git archive HEAD --prefix $(1 ) / | tar -xf -
71
+ endif
72
+
73
+ release : file_diff | $(diff_match_patch_zip )
74
+ cp $| $<
75
+ make -C $< deps && make -C $< -j ta=" ../../.."
76
+ zip -r $< .zip $< -x " *.zip" " *.h" " *.o" " *.def" " *.la" " $</.git*" && rm -r $<
77
+ file_diff : ; $(call archive,$@ )
78
+
You can’t perform that action at this time.
0 commit comments