From 29a26ec319d660479cb9975e3b6ff144068e0a32 Mon Sep 17 00:00:00 2001 From: hustcer Date: Sun, 22 Sep 2024 21:01:00 +0800 Subject: [PATCH] Try build with docker images --- .github/workflows/release-test.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-test.yml b/.github/workflows/release-test.yml index 925254443..06c45047f 100644 --- a/.github/workflows/release-test.yml +++ b/.github/workflows/release-test.yml @@ -53,8 +53,14 @@ jobs: - name: Release Nu Binary id: nu run: | - apt-get install tree -y --no-install-recommends - cargo install cross - cross build --release --all --target x86_64-unknown-freebsd + sudo apt-get update + sudo apt-get install tree -y --no-install-recommends + # cargo install cross + # cross build --release --all --target x86_64-unknown-freebsd + docker container run --rm \ + --volume ${{ github.workspace }}:/src \ + --user $(id --user):$(id --group) \ + hustcer/rust-cross-freebsd:latest build \ + --release --all --target x86_64-unknown-freebsd tree target