From 9f473bc36ec9e5316b471f57ac54395b2872b01e Mon Sep 17 00:00:00 2001 From: Renato Cavalcanti Date: Mon, 19 Apr 2021 17:31:40 +0200 Subject: [PATCH] try this hack --- .github/workflows/unit-tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index cad7183ec..fe2662319 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -39,6 +39,11 @@ jobs: - name: Cache Coursier cache uses: coursier/cache-action@v5 + # hack to solve "Cannot assign requested address" issue - https://github.community/t/github-action-and-oserror-errno-99-cannot-assign-requested-address/173973/1 + - name: Add the current IP address, long hostname and short hostname record to /etc/hosts file + run: | + echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts + - name: Run tests with Scala ${{ matrix.scala-version }} and Java ${{ matrix.java-version }} run: sbt "++${{ matrix.scala-version }} test" ${{ matrix.sbt-opts }}