@@ -2,10 +2,6 @@ name: release
2
2
3
3
on :
4
4
workflow_dispatch :
5
- inputs :
6
- preview :
7
- description : ' Preview tag if not empty. Needs to be in format vX.Y.Z-preview.X'
8
- type : string
9
5
pull_request :
10
6
types : [closed]
11
7
branches :
27
23
- name : Get version
28
24
id : release_info
29
25
run : |
30
- if [[ "${{ github.event.inputs.preview || 'false' }}" != "false" ]]; then
31
- # check if valid
32
- if [[ ! "${{ github.event.inputs.preview }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-preview\.[0-9]+$ ]]; then
33
- echo "Invalid preview tag format. Needs to be in format vX.Y.Z-preview.X"
34
- exit 1
35
- fi
36
- echo "tag_name=${{ github.event.inputs.preview }}" >> $GITHUB_OUTPUT
37
- else
38
- cargo install cargo-get
39
- echo "tag_name=v$(cargo get workspace.package.version)" >> $GITHUB_OUTPUT
40
- fi
26
+ cargo install cargo-get
27
+ echo "tag_name=v$(cargo get workspace.package.version)" >> $GITHUB_OUTPUT
41
28
42
29
release :
43
30
name : ${{ matrix.job.target }} (${{ matrix.job.os }})
90
77
with :
91
78
cache-on-failure : true
92
79
93
- # Required to build Katana at the moment.
94
- - uses : oven-sh/setup-bun@v1
95
- with :
96
- bun-version : latest
97
-
98
80
# required for `aws-lc-rs` crate to compile on Windows; https://aws.github.io/aws-lc-rs/requirements/windows.html
99
81
- name : Install NASM
100
82
uses : ilammy/setup-nasm@v1
@@ -130,16 +112,16 @@ jobs:
130
112
VERSION_NAME : ${{ needs.prepare.outputs.tag_name }}
131
113
run : |
132
114
if [ "$PLATFORM_NAME" == "linux" ]; then
133
- tar -czvf "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release katana sozo torii dojo-language-server
115
+ tar -czvf "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release sozo dojo-language-server
134
116
echo "file_name=dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
135
117
elif [ "$PLATFORM_NAME" == "darwin" ]; then
136
118
# We need to use gtar here otherwise the archive is corrupt.
137
119
# See: https://github.com/actions/virtual-environments/issues/2619
138
- gtar -czvf "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release katana sozo torii dojo-language-server
120
+ gtar -czvf "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" -C ./target/${TARGET}/release sozo dojo-language-server
139
121
echo "file_name=dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.tar.gz" >> $GITHUB_OUTPUT
140
122
else
141
123
cd ./target/${TARGET}/release
142
- 7z a -tzip "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" katana.exe sozo.exe torii .exe dojo-language-server.exe
124
+ 7z a -tzip "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" sozo.exe dojo-language-server.exe
143
125
mv "dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" ../../../
144
126
echo "file_name=dojo_${VERSION_NAME}_${PLATFORM_NAME}_${ARCH}.zip" >> $GITHUB_OUTPUT
145
127
fi
@@ -150,9 +132,7 @@ jobs:
150
132
if : ${{ env.PLATFORM_NAME == 'linux' }}
151
133
run : |
152
134
mkdir -p $PLATFORM_NAME/$ARCH
153
- mv target/$TARGET/release/katana $PLATFORM_NAME/$ARCH
154
135
mv target/$TARGET/release/sozo $PLATFORM_NAME/$ARCH
155
- mv target/$TARGET/release/torii $PLATFORM_NAME/$ARCH
156
136
shell : bash
157
137
158
138
# Upload these for use with the Docker build later
0 commit comments