Skip to content

Commit 812eccb

Browse files
committed
Fix pipeline
1 parent c440e1e commit 812eccb

File tree

1 file changed

+15
-40
lines changed

1 file changed

+15
-40
lines changed

.github/workflows/build-test-all.yml

+15-40
Original file line numberDiff line numberDiff line change
@@ -101,65 +101,40 @@ jobs:
101101
- name: Get version
102102
id: v
103103
run: |
104-
echo ::set-output name=v::${GITHUB_REF/refs\/tags\/v/}
104+
echo "v=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
105105
echo "Version is v${GITHUB_REF/refs\/tags\/v/}"
106106
- uses: actions/checkout@v4
107-
- name: Get vhdl_lang linux-musl
107+
- name: Download Artifacts
108108
uses: actions/download-artifact@v4
109109
with:
110-
name: vhdl_lang-x86_64-unknown-linux-musl
110+
name: vhdl_*
111+
path: ~/temp
111112
- name: Check vhdl_lang version
112113
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" ]
116117
then
117-
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }}\""
118+
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang $v\""
118119
exit 1
119120
else
120121
echo "Version string matched"
121122
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
126123
- name: Check vhdl_ls version
127124
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" ]
131128
then
132-
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }}\""
129+
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang $v\""
133130
exit 1
134131
else
135132
echo "Version string matched"
136133
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
161134
- name: Zip artifacts
162135
run: |
136+
cd ~/temp
137+
chmod +x */bin/vhdl*
163138
zip -r vhdl_lang-x86_64-unknown-linux-gnu.zip vhdl_lang-x86_64-unknown-linux-gnu
164139
zip -r vhdl_ls-x86_64-unknown-linux-gnu.zip vhdl_ls-x86_64-unknown-linux-gnu
165140
zip -r vhdl_lang-x86_64-unknown-linux-musl.zip vhdl_lang-x86_64-unknown-linux-musl
@@ -172,5 +147,5 @@ jobs:
172147
uses: ncipollo/release-action@v1
173148
with:
174149
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"
176151
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)