Skip to content

Commit d1d6208

Browse files
committed
Add x86_64-unknown-linux-musl target
1 parent e775906 commit d1d6208

File tree

1 file changed

+30
-9
lines changed

1 file changed

+30
-9
lines changed

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

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- vhdl_ls
2121
target:
2222
- x86_64-unknown-linux-gnu
23+
- x86_64-unknown-linux-musl
2324
- x86_64-pc-windows-msvc
2425
rust:
2526
- stable
@@ -28,6 +29,9 @@ jobs:
2829
- target: x86_64-unknown-linux-gnu
2930
os: ubuntu-latest
3031
ext: ""
32+
- target: x86_64-unknown-linux-musl
33+
os: ubuntu-latest
34+
ext: ""
3135
- target: x86_64-pc-windows-msvc
3236
os: windows-latest
3337
ext: .exe
@@ -43,8 +47,15 @@ jobs:
4347
profile: minimal
4448
toolchain: ${{ matrix.rust }}
4549
override: true
50+
target: x86_64-unknown-linux-musl
4651
components: rustfmt, clippy
4752

53+
- uses: awalsh128/cache-apt-pkgs-action@v1
54+
if: matrix.os == 'ubuntu-latest'
55+
with:
56+
packages: musl-tools # provides musl-gcc
57+
version: 1.0
58+
4859
- name: Build
4960
uses: actions-rs/cargo@v1
5061
with:
@@ -99,36 +110,44 @@ jobs:
99110
echo ::set-output name=v::${GITHUB_REF/refs\/tags\/v/}
100111
echo "Version is v${GITHUB_REF/refs\/tags\/v/}"
101112
- uses: actions/checkout@v1
102-
- name: Get vhdl_lang linux
113+
- name: Get vhdl_lang linux-musl
103114
uses: actions/download-artifact@v1
104115
with:
105-
name: vhdl_lang-x86_64-unknown-linux-gnu
116+
name: vhdl_lang-x86_64-unknown-linux-musl
106117
- name: Check vhdl_lang version
107118
run: |
108-
chmod u+x vhdl_lang-x86_64-unknown-linux-gnu/bin/vhdl_lang
109-
version_string=$(vhdl_lang-x86_64-unknown-linux-gnu/bin/vhdl_lang --version)
119+
chmod u+x vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang
120+
version_string=$(vhdl_lang-x86_64-unknown-linux-musl/bin/vhdl_lang --version)
110121
if [ "$version_string" != "vhdl_lang ${{ steps.v.outputs.v }}" ]
111122
then
112123
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }}\""
113124
exit 1
114125
else
115126
echo "Version string matched"
116127
fi
117-
- name: Get vhdl_ls linux
128+
- name: Get vhdl_ls linux-musl
118129
uses: actions/download-artifact@v1
119130
with:
120-
name: vhdl_ls-x86_64-unknown-linux-gnu
131+
name: vhdl_ls-x86_64-unknown-linux-musl
121132
- name: Check vhdl_ls version
122133
run: |
123-
chmod u+x vhdl_ls-x86_64-unknown-linux-gnu/bin/vhdl_ls
124-
version_string=$(vhdl_ls-x86_64-unknown-linux-gnu/bin/vhdl_ls --version)
134+
chmod u+x vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls
135+
version_string=$(vhdl_ls-x86_64-unknown-linux-musl/bin/vhdl_ls --version)
125136
if [ "$version_string" != "vhdl_ls ${{ steps.v.outputs.v }}" ]
126137
then
127138
echo "Version string mismatch (\"$version_string\" != \"vhdl_lang ${{ steps.v.outputs.v }}\""
128139
exit 1
129140
else
130141
echo "Version string matched"
131142
fi
143+
- name: Get vhdl_lang linux-gnu
144+
uses: actions/download-artifact@v1
145+
with:
146+
name: vhdl_lang-x86_64-unknown-linux-gnu
147+
- name: Get vhdl_ls linux-gnu
148+
uses: actions/download-artifact@v1
149+
with:
150+
name: vhdl_ls-x86_64-unknown-linux-gnu
132151
- name: Get vhdl_lang windows
133152
uses: actions/download-artifact@v1
134153
with:
@@ -141,11 +160,13 @@ jobs:
141160
run: |
142161
zip -r vhdl_lang-x86_64-unknown-linux-gnu.zip vhdl_lang-x86_64-unknown-linux-gnu
143162
zip -r vhdl_ls-x86_64-unknown-linux-gnu.zip vhdl_ls-x86_64-unknown-linux-gnu
163+
zip -r vhdl_lang-x86_64-unknown-linux-musl.zip vhdl_lang-x86_64-unknown-linux-musl
164+
zip -r vhdl_ls-x86_64-unknown-linux-musl.zip vhdl_ls-x86_64-unknown-linux-musl
144165
zip -r vhdl_lang-x86_64-pc-windows-msvc.zip vhdl_lang-x86_64-pc-windows-msvc
145166
zip -r vhdl_ls-x86_64-pc-windows-msvc.zip vhdl_ls-x86_64-pc-windows-msvc
146167
- name: Do release
147168
uses: ncipollo/release-action@v1
148169
with:
149170
draft: false
150-
artifacts: "vhdl_lang-x86_64-unknown-linux-gnu.zip,vhdl_ls-x86_64-unknown-linux-gnu.zip,vhdl_lang-x86_64-pc-windows-msvc.zip,vhdl_ls-x86_64-pc-windows-msvc.zip"
171+
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"
151172
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)