Skip to content

Commit 03d2162

Browse files
authored
Merge pull request #56 from dotnet-campus/t/lindexi/FixGlibc
降低 GLibC 版本
2 parents 0197e51 + 957707a commit 03d2162

1 file changed

Lines changed: 66 additions & 12 deletions

File tree

.github/workflows/NuGet-tag-publish-MediaConverters.yml

Lines changed: 66 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,34 @@ jobs:
7272
PackOnLinuxX64:
7373

7474
runs-on: ubuntu-latest
75+
container:
76+
image: debian:buster-slim
7577

7678
steps:
79+
# 由于 Debian 10 (buster) 停止维护了,需要换成 archive.debian.org 源头
80+
- name: UpdateSource
81+
run: |
82+
rm /etc/apt/sources.list
83+
echo 'deb http://archive.debian.org/debian buster main contrib non-free' >> /etc/apt/sources.list
84+
echo 'deb http://archive.debian.org/debian buster-updates main contrib non-free' >> /etc/apt/sources.list
85+
echo 'deb http://archive.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
86+
- name: InstallTool
87+
run: |
88+
dpkg --add-architecture arm64
89+
apt-get clean
90+
apt-get update
91+
apt-get install libicu-dev -y
92+
apt-get install libssl-dev -y
93+
apt-get install wget -y
94+
apt-get install curl -y
95+
apt-get install clang llvm -y
96+
apt-get install gcc-aarch64-linux-gnu -y
97+
apt-get install binutils-aarch64-linux-gnu -y
98+
apt-get install zlib1g-dev -y
99+
apt-get install zlib1g-dev:arm64 -y
100+
77101
- uses: actions/checkout@v4
78102

79-
- name: Install dotnet tool
80-
run: dotnet tool install -g dotnetCampus.TagToVersion
81-
82-
- name: Set tag to version
83-
run: dotnet TagToVersion -t ${{ github.ref }}
84-
85103
- name: Setup .NET
86104
uses: actions/setup-dotnet@v1
87105
with:
@@ -91,6 +109,15 @@ jobs:
91109
6.0.x
92110
9.0.x
93111
112+
- name: Add .NET global tools to PATH
113+
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
114+
115+
- name: Install dotnet tool
116+
run: dotnet tool install -g dotnetCampus.TagToVersion
117+
118+
- name: Set tag to version
119+
run: dotnet-TagToVersion -t ${{ github.ref }}
120+
94121
- name: Build with dotnet
95122
run: dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
96123

@@ -107,15 +134,33 @@ jobs:
107134
PackOnLinuxArm64:
108135

109136
runs-on: ubuntu-24.04-arm
137+
container:
138+
image: debian:buster-slim
110139

111140
steps:
112-
- uses: actions/checkout@v4
113-
114-
- name: Install dotnet tool
115-
run: dotnet tool install -g dotnetCampus.TagToVersion
141+
# 由于 Debian 10 (buster) 停止维护了,需要换成 archive.debian.org 源头
142+
- name: UpdateSource
143+
run: |
144+
rm /etc/apt/sources.list
145+
echo 'deb http://archive.debian.org/debian buster main contrib non-free' >> /etc/apt/sources.list
146+
echo 'deb http://archive.debian.org/debian buster-updates main contrib non-free' >> /etc/apt/sources.list
147+
echo 'deb http://archive.debian.org/debian-security buster/updates main contrib non-free' >> /etc/apt/sources.list
148+
- name: InstallTool
149+
run: |
150+
dpkg --add-architecture arm64
151+
apt-get clean
152+
apt-get update
153+
apt-get install libicu-dev -y
154+
apt-get install libssl-dev -y
155+
apt-get install wget -y
156+
apt-get install curl -y
157+
apt-get install clang llvm -y
158+
apt-get install gcc-aarch64-linux-gnu -y
159+
apt-get install binutils-aarch64-linux-gnu -y
160+
apt-get install zlib1g-dev -y
161+
apt-get install zlib1g-dev:arm64 -y
116162
117-
- name: Set tag to version
118-
run: dotnet TagToVersion -t ${{ github.ref }}
163+
- uses: actions/checkout@v4
119164

120165
- name: Setup .NET
121166
uses: actions/setup-dotnet@v1
@@ -126,6 +171,15 @@ jobs:
126171
6.0.x
127172
9.0.x
128173
174+
- name: Add .NET global tools to PATH
175+
run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
176+
177+
- name: Install dotnet tool
178+
run: dotnet tool install -g dotnetCampus.TagToVersion
179+
180+
- name: Set tag to version
181+
run: dotnet-TagToVersion -t ${{ github.ref }}
182+
129183
- name: Build with dotnet
130184
run: dotnet build --configuration Release src/MediaConverters/MediaConverters.sln
131185

0 commit comments

Comments
 (0)