diff --git a/.github/build-cpp-filecoin.src.yml b/.github/build-cpp-filecoin.src.yml index cfe27d6e5..0f70467ee 100644 --- a/.github/build-cpp-filecoin.src.yml +++ b/.github/build-cpp-filecoin.src.yml @@ -13,7 +13,7 @@ jobs: ## You should `pre-commit install` or use `pre-commit-hook.sh`, ## anyway please read .github/README.md check_workflow_yaml_coressponds_to_src_yaml: - runs-on: ubuntu-20.04 #ubuntu-latest + runs-on: ubuntu-latest #container: ubuntu:latest ## This is required as barrier between AWS-hosted runners and GitHub-hosted runners - they have different set of software, so run in container name: Check if github workflows were properly made from sources steps: @@ -48,7 +48,7 @@ jobs: ## Note: image is push only when DockerHub login-token pair available - not to PRs from forks. Docker-fuhon-builder: needs: check_workflow_yaml_coressponds_to_src_yaml - runs-on: ubuntu-20.04 #ubuntu-latest #[ self-hosted, Linux ] + runs-on: ubuntu-latest #[ self-hosted, Linux ] env: &env_dockerhub DOCKERHUB_ORG: soramitsu ## Cannot use ${{ secrets.DOCKERHUB_ORG }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} @@ -128,7 +128,7 @@ jobs: uses: docker/setup-buildx-action@v1 - &step_docker_cache name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{env.dockertag}} @@ -190,4 +190,4 @@ jobs: ## if dockertag is already pushed then use it. But let it be empty when tag does not exist remotely. dockertag: ${{steps.dockertag.outputs.dockertag}} container: ${{steps.dockertag_already.outputs.container}} - pushed: ${{ steps.docker_login.outcome == 'success' && steps.build_and_push.outcome == 'success' }} \ No newline at end of file + pushed: ${{ steps.docker_login.outcome == 'success' && steps.build_and_push.outcome == 'success' }} diff --git a/.github/workflows/asan.yml b/.github/workflows/asan.yml index 68e4d90a5..9992fbbe5 100644 --- a/.github/workflows/asan.yml +++ b/.github/workflows/asan.yml @@ -10,14 +10,14 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: 'recursive' name: checkout repo - name: cache - uses: actions/cache@v1.2.0 + uses: actions/cache@v4 env: cache-name: cache-filecoin-ffi-proofs version: v28 diff --git a/.github/workflows/build-cpp-filecoin.yml b/.github/workflows/build-cpp-filecoin.yml index e76ba4d9e..ce56637de 100644 --- a/.github/workflows/build-cpp-filecoin.yml +++ b/.github/workflows/build-cpp-filecoin.yml @@ -14,7 +14,7 @@ jobs: ## You should `pre-commit install` or use `pre-commit-hook.sh`, ## anyway please read .github/README.md check_workflow_yaml_coressponds_to_src_yaml: - runs-on: ubuntu-20.04 #ubuntu-latest + runs-on: ubuntu-latest #container: ubuntu:latest ## This is required as barrier between AWS-hosted runners and GitHub-hosted runners - they have different set of software, so run in container name: Check if github workflows were properly made from sources steps: @@ -43,7 +43,7 @@ jobs: ## Note: image is push only when DockerHub login-token pair available - not to PRs from forks. Docker-fuhon-builder: needs: check_workflow_yaml_coressponds_to_src_yaml - runs-on: ubuntu-20.04 #ubuntu-latest #[ self-hosted, Linux ] + runs-on: ubuntu-latest #[ self-hosted, Linux ] env: DOCKERHUB_ORG: soramitsu ## Cannot use ${{ secrets.DOCKERHUB_ORG }} DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} @@ -127,7 +127,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 - name: Cache Docker layers - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{env.dockertag}} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1177ac8d8..ccfd97e5a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,14 +15,12 @@ jobs: fail-fast: false matrix: # 3 jobs in total - os: [ ubuntu-20.04, macOS-latest ] - compiler: [ { - "cc": "gcc", - "cxx": "g++" - }, { - "cc": "clang", - "cxx": "clang++" - } ] + os: [ ubuntu-latest, macOS-latest ] + compiler: + - cc: gcc + cxx: g++ + - cc: clang + cxx: clang++ exclude: - os: macOS-latest compiler: @@ -42,7 +40,7 @@ jobs: submodules: 'recursive' name: checkout repo - name: cache - uses: actions/cache@v1.2.0 + uses: actions/cache@v4 env: cache-name: cache-filecoin-ffi-proofs version: v28 @@ -59,12 +57,12 @@ jobs: sudo apt-get update sudo apt-get install -y ninja-build python-setuptools pkg-config ocl-icd-* opencl-headers libhwloc-dev libhidapi-dev fi - + pip3 -V || sudo python3 -m pip install --upgrade pip sudo pip3 install scikit-build sudo pip3 install requests gitpython gcovr pyyaml sudo curl https://sh.rustup.rs -sSf | sh -s -- -y - + # Workaround to provide additional free space for testing. # https://github.com/actions/virtual-environments/issues/2875 sudo rm -rf /usr/share/dotnet diff --git a/.github/workflows/lsan.yml b/.github/workflows/lsan.yml index 33eb7f3b9..f03f041ec 100644 --- a/.github/workflows/lsan.yml +++ b/.github/workflows/lsan.yml @@ -10,14 +10,14 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: 'recursive' name: checkout repo - name: cache - uses: actions/cache@v1.2.0 + uses: actions/cache@v4 env: cache-name: cache-filecoin-ffi-proofs version: v28 diff --git a/.github/workflows/tsan.yml b/.github/workflows/tsan.yml index 84858ccaa..318e213f6 100644 --- a/.github/workflows/tsan.yml +++ b/.github/workflows/tsan.yml @@ -17,7 +17,7 @@ jobs: submodules: 'recursive' name: checkout repo - name: cache - uses: actions/cache@v1.2.0 + uses: actions/cache@v4 env: cache-name: cache-filecoin-ffi-proofs version: v28 @@ -45,4 +45,3 @@ jobs: CTEST_OUTPUT_ON_FAILURE: 1 TSAN_OPTIONS: "suppressions=${{ github.workspace }}/.github/workflows/tsan-ignorelist.txt" run: cmake --build build --target test - diff --git a/.github/workflows/ubsan.yml b/.github/workflows/ubsan.yml index 24f0dbbb2..9b1611b00 100644 --- a/.github/workflows/ubsan.yml +++ b/.github/workflows/ubsan.yml @@ -10,14 +10,14 @@ on: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: submodules: 'recursive' name: checkout repo - name: cache - uses: actions/cache@v1.2.0 + uses: actions/cache@v4 env: cache-name: cache-filecoin-ffi-proofs version: v28