-
Notifications
You must be signed in to change notification settings - Fork 310
106 lines (85 loc) · 3.37 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Artifact
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
artifact:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .cache
key: nix-v1-2.24.9-${{ hashFiles('nix/nixpkgs.json') }}
- run: sudo apt-get update
- run: sudo apt-get install -y make git gcc build-essential pkgconf libtool libsystemd-dev libcap-dev libseccomp-dev libyajl-dev go-md2man libtool autoconf python3 automake libprotobuf-c-dev
- run: |
set -ex
sudo mkdir -p .cache
sudo mv .cache /nix
if [[ -z $(ls -A /nix) ]]; then sudo docker run --rm --privileged -v /:/mnt nixos/nix:2.24.9 cp -rfT /nix /mnt/nix; fi
sudo RUNTIME=docker SKIP_CHECKS=1 SKIP_GPG=1 build-aux/release.sh
sudo mv /nix .cache
sudo chown -Rf $(whoami) .cache
- run: |
sudo mv release-* /tmp/artifact
for ARCH in amd64 arm64 ppc64le riscv64 s390x; do
sudo mv /tmp/artifact/crun-*-linux-${ARCH} /tmp/artifact/crun-linux-${ARCH}
sudo mv /tmp/artifact/crun-*-linux-${ARCH}-disable-systemd /tmp/artifact/crun-linux-${ARCH}-disable-systemd
done
sudo mv /tmp/artifact/*.tar.gz /tmp/artifact/crun.tar.gz
sudo mv /tmp/artifact/*.tar.zst /tmp/artifact/crun.tar.zst
(cd /tmp/artifact; sha256sum * | sudo tee CHECKSUMS)
- uses: actions/upload-artifact@v4
with:
name: crun-linux-amd64
path: /tmp/artifact/crun-linux-amd64
- uses: actions/upload-artifact@v4
with:
name: crun-linux-amd64-disable-systemd
path: /tmp/artifact/crun-linux-amd64-disable-systemd
- uses: actions/upload-artifact@v4
with:
name: crun-linux-arm64
path: /tmp/artifact/crun-linux-arm64
- uses: actions/upload-artifact@v4
with:
name: crun-linux-arm64-disable-systemd
path: /tmp/artifact/crun-linux-arm64-disable-systemd
- uses: actions/upload-artifact@v4
with:
name: crun-linux-ppc64le
path: /tmp/artifact/crun-linux-ppc64le
- uses: actions/upload-artifact@v4
with:
name: crun-linux-ppc64le-disable-systemd
path: /tmp/artifact/crun-linux-ppc64le-disable-systemd
- uses: actions/upload-artifact@v4
with:
name: crun-linux-riscv64
path: /tmp/artifact/crun-linux-riscv64
- uses: actions/upload-artifact@v4
with:
name: crun-linux-riscv64-disable-systemd
path: /tmp/artifact/crun-linux-riscv64-disable-systemd
- uses: actions/upload-artifact@v4
with:
name: crun-linux-s390x
path: /tmp/artifact/crun-linux-s390x
- uses: actions/upload-artifact@v4
with:
name: crun-linux-s390x-disable-systemd
path: /tmp/artifact/crun-linux-s390x-disable-systemd
- uses: actions/upload-artifact@v4
with:
name: crun.tar.gz
path: /tmp/artifact/crun.tar.gz
- uses: actions/upload-artifact@v4
with:
name: crun.tar.zst
path: /tmp/artifact/crun.tar.zst
- uses: actions/upload-artifact@v4
with:
name: CHECKSUMS
path: /tmp/artifact/CHECKSUMS