File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 7
7
- uses : actions/checkout@v2
8
8
- name : Set variables
9
9
run : |
10
- echo "RELEASE=${RELEASE}" >> $GITHUB_ENV
11
- echo "BUILD=${BUILD}" >> $GITHUB_ENV
12
- echo "DOCKER_SERVER=${DOCKER_SERVER}" >> $GITHUB_ENV
13
- echo "PACKAGE_URI=${PACKAGE_URI}" >> $GITHUB_ENV
14
- echo "VERSION=$RELEASE-$(echo $BUILD | sed 's/\..*//')" >> $GITHUB_ENV
15
- echo "DOCKER_REPO=$DOCKER_SERVER/$GITHUB_REPOSITORY" >> $GITHUB_ENV
10
+ echo "VERSION=${VERSION}" >> $GITHUB_ENV
11
+ echo "ORIGIN_VERSION=${ORIGIN_VERSION}" >> $GITHUB_ENV
12
+ echo "DOCKER_REPO=${DOCKER_REPO}/$GITHUB_REPOSITORY" >> $GITHUB_ENV
16
13
env :
17
- RELEASE : 5.1.0
18
- BUILD : 8.fc33
19
- # See qemu-user-static's RPM spec file on Fedora to check the new version.
20
- # https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
21
- DOCKER_SERVER : docker.io
22
- PACKAGE_URI : https://kojipkgs.fedoraproject.org/packages/qemu
14
+ VERSION : 5.2.0-1
15
+ ORIGIN_VERSION : 5.2+dfsg-2
16
+ DOCKER_REPO : docker.io
23
17
- name : Build releases
24
18
run : |
25
- sudo apt install rpm2cpio cpio
26
- PACKAGE_URI=$PACKAGE_URI/$RELEASE/$BUILD/x86_64/qemu-user-static-$RELEASE-$BUILD.x86_64.rpm
27
- wget --content-disposition $PACKAGE_URI
28
- rpm2cpio $(basename "$PACKAGE_URI") | cpio -dimv
19
+ wget --content-disposition http://ftp.de.debian.org/debian/pool/main/q/qemu/qemu-user-static_${ORIGIN_VERSION}_amd64.deb
20
+ dpkg-deb -R qemu-user-static_*.deb .
29
21
./generate_tarballs.sh
30
22
- name : Publish releases
31
23
if : github.ref == 'refs/heads/master'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ shift $((OPTIND-1))
28
28
[ " $1 " = " --" ] && shift
29
29
30
30
from_arch=" x86_64"
31
- to_archs=" aarch64 aarch64_be alpha armeb arm cris hppa i386 m68k microblazeel microblaze mips64el mips64 mipsel mipsn32el mipsn32 mips nios2 or1k ppc64abi32 ppc64le ppc64 ppc riscv32 riscv64 s390x sh4eb sh4 sparc32plus sparc64 sparc tilegx x86_64 xtensaeb xtensa"
31
+ to_archs=" aarch64 aarch64_be alpha arm armeb cris hppa i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el nios2 or1k ppc ppc64 ppc64le riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64 x86_64 xtensa xtensaeb "
32
32
# For casual test
33
33
# to_archs="aarch64"
34
34
You can’t perform that action at this time.
0 commit comments