@@ -101,65 +101,40 @@ jobs:
101
101
- name : Get version
102
102
id : v
103
103
run : |
104
- echo ::set-output name=v:: ${GITHUB_REF/refs\/tags\/v/}
104
+ echo "v= ${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
105
105
echo "Version is v${GITHUB_REF/refs\/tags\/v/}"
106
106
- uses : actions/checkout@v4
107
- - name : Get vhdl_lang linux-musl
107
+ - name : Download Artifacts
108
108
uses : actions/download-artifact@v4
109
109
with :
110
- name : vhdl_lang-x86_64-unknown-linux-musl
110
+ name : vhdl_*
111
+ path : ~/temp
111
112
- name : Check vhdl_lang version
112
113
run : |
113
- chmod u+x vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang
114
- version_string=$(vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang --version)
115
- if [ "$version_string" != "vhdl_lang ${{ steps.v.outputs.v }} " ]
114
+ chmod u+x ~/temp/ vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang
115
+ version_string=$(~/temp/ vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang --version)
116
+ if [ "$version_string" != "vhdl_lang $v " ]
116
117
then
117
- echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }} \""
118
+ echo "Version string mismatch (\"$version_string\" != \"vhdl_lang $v \""
118
119
exit 1
119
120
else
120
121
echo "Version string matched"
121
122
fi
122
- - name : Get vhdl_ls linux-musl
123
- uses : actions/download-artifact@v4
124
- with :
125
- name : vhdl_ls-x86_64-unknown-linux-musl
126
123
- name : Check vhdl_ls version
127
124
run : |
128
- chmod u+x vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls
129
- version_string=$(vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls --version)
130
- if [ "$version_string" != "vhdl_ls ${{ steps.v.outputs.v }} " ]
125
+ chmod u+x ~/temp/ vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls
126
+ version_string=$(~/temp/ vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls --version)
127
+ if [ "$version_string" != "vhdl_ls $v " ]
131
128
then
132
- echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }} \""
129
+ echo "Version string mismatch (\"$version_string\" != \"vhdl_lang $v \""
133
130
exit 1
134
131
else
135
132
echo "Version string matched"
136
133
fi
137
- - name : Get vhdl_lang linux-gnu
138
- uses : actions/download-artifact@v4
139
- with :
140
- name : vhdl_lang-x86_64-unknown-linux-gnu
141
- - name : Get vhdl_ls linux-gnu
142
- uses : actions/download-artifact@v4
143
- with :
144
- name : vhdl_ls-x86_64-unknown-linux-gnu
145
- - name : Get vhdl_lang windows
146
- uses : actions/download-artifact@v4
147
- with :
148
- name : vhdl_lang-x86_64-pc-windows-msvc
149
- - name : Get vhdl_ls windows
150
- uses : actions/download-artifact@v4
151
- with :
152
- name : vhdl_ls-x86_64-pc-windows-msvc
153
- - name : Get vhdl_lang macos
154
- uses : actions/download-artifact@v4
155
- with :
156
- name : vhdl_lang-aarch64-apple-darwin
157
- - name : Get vhdl_ls macos
158
- uses : actions/download-artifact@v4
159
- with :
160
- name : vhdl_ls-aarch64-apple-darwin
161
134
- name : Zip artifacts
162
135
run : |
136
+ cd ~/temp
137
+ chmod +x */bin/vhdl*
163
138
zip -r vhdl_lang-x86_64-unknown-linux-gnu.zip vhdl_lang-x86_64-unknown-linux-gnu
164
139
zip -r vhdl_ls-x86_64-unknown-linux-gnu.zip vhdl_ls-x86_64-unknown-linux-gnu
165
140
zip -r vhdl_lang-x86_64-unknown-linux-musl.zip vhdl_lang-x86_64-unknown-linux-musl
@@ -172,5 +147,5 @@ jobs:
172
147
uses : ncipollo/release-action@v1
173
148
with :
174
149
draft : false
175
- artifacts : " vhdl_lang-x86_64-unknown-linux-gnu.zip,vhdl_ls-x86_64-unknown-linux-gnu.zip,vhdl_lang-x86_64-unknown-linux-musl.zip,vhdl_ls-x86_64-unknown-linux-musl.zip,vhdl_lang-x86_64-pc-windows-msvc.zip,vhdl_ls-x86_64-pc-windows-msvc.zip,vhdl_lang-aarch64-apple-darwin.zip,vhdl_ls-aarch64-apple-darwin .zip"
150
+ artifacts : " ~/temp/* .zip"
176
151
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments