Skip to content

Commit 0ed0bc2

Browse files
committed
[skip actions] use released macadam
1 parent b5d1f2a commit 0ed0bc2

File tree

1 file changed

+32
-9
lines changed

1 file changed

+32
-9
lines changed

macadam.md

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
11
# Macadam
22

3-
## default install
4-
Temporary solution until binaries are published
53

4+
## vars
5+
```sh
6+
GVPROXY_VERSION="v0.8.7"
7+
GVPROXY_DOWNLOAD_BASEURL="https://github.com/containers/gvisor-tap-vsock/releases/download/${GVPROXY_VERSION}"
8+
MACADAM_VERSION="v0.1.2"
9+
MACADAM_DOWNLOAD_BASEURL="https://github.com/crc-org/macadam/releases/download/${MACADAM_VERSION}"
10+
```
11+
12+
## default install
613
```sh
7-
apps projects/gvproxy source checkout
8-
apps projects/macadam source checkout
14+
arch=$(uname -m)
15+
if [[ "$arch" == "x86_64" ]]; then
16+
GVPROXY_DOWNLOAD_URL="${GVPROXY_DOWNLOAD_BASEURL}/gvproxy-linux-amd64"
17+
MACADAM_DOWNLOAD_URL="${MACADAM_DOWNLOAD_BASEURL}/macadam-linux-amd64"
18+
elif [[ "$arch" == "aarch64" ]]; then
19+
GVPROXY_DOWNLOAD_URL="${GVPROXY_DOWNLOAD_BASEURL}/gvproxy-linux-arm64"
20+
MACADAM_DOWNLOAD_URL="${MACADAM_DOWNLOAD_BASEURL}/macadam-linux-arm64"
21+
else
22+
echo "::error::Unsupported architecture: $arch. Only x86_64 and aarch64 are supported."
23+
return 1
24+
fi
925

10-
devenv gofedora start
11-
apps projects/gvproxy compile
12-
apps projects/macadam compile
26+
mkdir -p /tmp/macadam-install
1327

14-
apps projects/gvproxy cp
15-
apps projects/macadam cp
28+
curl -sSL $GVPROXY_DOWNLOAD_URL -o /tmp/macadam-install/gvproxy
29+
curl -sSL $MACADAM_DOWNLOAD_URL -o /tmp/macadam-install/macadam
30+
31+
chmod +x /tmp/macadam-install/gvproxy
32+
chmod +x /tmp/macadam-install/macadam
33+
34+
mv /tmp/macadam-install/gvproxy ${LOCALBIN}
35+
mv /tmp/macadam-install/macadam ${LOCALBIN}
36+
37+
rm -rf /tmp/macadam-install
1638
```
39+

0 commit comments

Comments
 (0)