ci/cd: use a different ubuntu image to fix musl build (#13859)

This commit is contained in:
Diego Heras 2023-01-07 12:35:43 +01:00 committed by GitHub
parent d76325d6bc
commit 1ca2edf9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -73,21 +73,27 @@ stages:
artifactName: Jackett.Binaries.LinuxARM64.tar.gz
LinuxMuslAMDx64:
buildDescription: Linux musl AMD x64
imageName: ubuntu-22.04
# We build musl binaries using a different ubuntu image on purpose. The stages using the same image could
# run in the same virtual machine sharing the file system and causing this error:
# error MSB4018: System.IO.IOException: The process cannot access the file '/home/vsts/work/1/s/src/DateTimeRoutines/bin/Release/netstandard2.0/DateTimeRoutines.deps.json'
# because it is being used by another process. [/home/vsts/work/1/s/src/DateTimeRoutines/DateTimeRoutines.csproj]
imageName: ubuntu-20.04
framework: $(netCoreFramework)
runtime: linux-musl-x64
archiveType: tar
artifactName: Jackett.Binaries.LinuxMuslAMDx64.tar.gz
LinuxMuslARM32:
buildDescription: Linux musl ARM32
imageName: ubuntu-22.04
# see comment in LinuxMuslAMDx64
imageName: ubuntu-20.04
framework: $(netCoreFramework)
runtime: linux-musl-arm
archiveType: tar
artifactName: Jackett.Binaries.LinuxMuslARM32.tar.gz
LinuxMuslARM64:
buildDescription: Linux musl ARM64
imageName: ubuntu-22.04
# see comment in LinuxMuslAMDx64
imageName: ubuntu-20.04
framework: $(netCoreFramework)
runtime: linux-musl-arm64
archiveType: tar