diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index c2088b621..9e639945a 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -41,11 +41,23 @@ jobs: - name: Checkout Component Detection uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Prepare Dotnet + run: | + # When using a Vanilla Ubuntu image, GH Actions may not have access to the /usr/share/dotnet directory. + sudo mkdir /usr/share/dotnet + sudo chmod 777 /usr/share/dotnet + - name: Setup .NET uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1 - name: Install Apache Ivy - run: curl https://downloads.apache.org/ant/ivy/2.5.2/apache-ivy-2.5.2-bin.tar.gz | tar xOz apache-ivy-2.5.2/ivy-2.5.2.jar > /usr/share/ant/lib/ivy.jar + run: | + echo "Starting Apache Ant and Ivy installation..." + sudo apt install -y ant + + echo "Ant installed successfully. Installing Ivy plugin..." + sudo chmod 777 /usr/share/ant/lib + curl https://downloads.apache.org/ant/ivy/2.5.2/apache-ivy-2.5.2-bin.tar.gz | tar xOz apache-ivy-2.5.2/ivy-2.5.2.jar > /usr/share/ant/lib/ivy.jar - name: Checkout Smoke Test Repo uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2