Skip to content

Commit 69dcdea

Browse files
committed
Fix release test
Signed-off-by: Guvenc Gulce <[email protected]>
1 parent 064592c commit 69dcdea

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/release-oci.yaml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- fix/oci-layout
7+
- fix_test
88
tags:
99
- '*'
1010
paths-ignore:
@@ -62,8 +62,41 @@ jobs:
6262
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
6363
restore-keys: ${{ runner.os }}-cargo-
6464

65+
- name: Download and Install Youki
66+
run: |
67+
YOUKI_VERSION=$(cat hack/youki/version)
68+
YOUKI_FILENAME=youki
69+
YOUKI_ARCHIVE="${YOUKI_FILENAME}-${YOUKI_VERSION}-x86_64-musl.tar.gz"
70+
YOUKI_URL="https://github.com/youki-dev/youki/releases/download/v${YOUKI_VERSION}/${YOUKI_ARCHIVE}"
71+
DOWNLOAD_DIR=$(mktemp -d)
72+
73+
echo "Downloading Youki v${YOUKI_VERSION} from ${YOUKI_URL}"
74+
curl -L "${YOUKI_URL}" -o "${DOWNLOAD_DIR}/${YOUKI_ARCHIVE}"
75+
76+
echo "Extracting Youki..."
77+
tar -xzf "${DOWNLOAD_DIR}/${YOUKI_ARCHIVE}" -C "${DOWNLOAD_DIR}"
78+
79+
echo "Installing Youki binary to /usr/local/bin..."
80+
sudo install -Dm755 "${DOWNLOAD_DIR}/${YOUKI_FILENAME}" "/usr/local/bin/${YOUKI_FILENAME}"
81+
82+
echo "Cleaning up..."
83+
rm -rf "${DOWNLOAD_DIR}"
84+
85+
echo "Verifying youki installation:"
86+
which youki
87+
youki --version
88+
6589
- name: Run Tests
66-
run: make test
90+
env:
91+
RUST_BACKTRACE: 1
92+
SUDO_ENV_VARS: "PATH=$PATH:$HOME/.cargo/bin CARGO_HOME=$HOME/.cargo"
93+
run: |
94+
sudo -E bash -c ' \
95+
export PATH="$HOME/.cargo/bin:$PATH"; \
96+
export CARGO_HOME="$HOME/.cargo"; \
97+
make test; \
98+
make clean
99+
'
67100
68101
- name: Build build-container
69102
run: make build-container

0 commit comments

Comments
 (0)