From f6a5c301ebb17fb99ea3a8817e8f7e5c07d7e51e Mon Sep 17 00:00:00 2001 From: hocine BENKHADRA Date: Tue, 6 Aug 2024 11:32:47 +0200 Subject: [PATCH] fix(ci-rs.yml): attempt to fix problem with docker test --- .github/docker-ubuntu-rust-install.sh | 12 ++++++++++++ .github/workflows/ci-rs.yml | 9 +-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/docker-ubuntu-rust-install.sh b/.github/docker-ubuntu-rust-install.sh index 6470910..aa283c0 100644 --- a/.github/docker-ubuntu-rust-install.sh +++ b/.github/docker-ubuntu-rust-install.sh @@ -1,5 +1,17 @@ #!bin/bash +Xvfb :0 & + +sleep 1 + +gpg-agent --daemon + +sleep 1 + +xfce4-session & + +sleep 1 + curl https://sh.rustup.rs -sSf | bash -s -- -y sudo apt install musl-tools -y diff --git a/.github/workflows/ci-rs.yml b/.github/workflows/ci-rs.yml index 8f019ad..bae3131 100644 --- a/.github/workflows/ci-rs.yml +++ b/.github/workflows/ci-rs.yml @@ -117,14 +117,7 @@ jobs: with: image: ${{ matrix.settings.image }} options: --user 0:0 -e CARGO_TARGET_ENV=${{ matrix.settings.target }} -v ${{ github.workspace }}/.github/docker-ubuntu-install.sh:/usr/local/docker-ubuntu-install.sh -v ${{ github.workspace }}/x-win-rs:/work -w /work - run: | - Xvfb :0 & - sleep 1 - gpg-agent --daemon - sleep 1 - xfce4-session & - sleep 1 - sh /usr/local/docker-ubuntu-install.sh + run: sh /usr/local/docker-ubuntu-install.sh - name: Build run: cargo build --release --target ${{ matrix.settings.target }}