diff --git a/.github/actions/setup-build/action.yml b/.github/actions/setup-build/action.yml index 54288b095..826c16acd 100644 --- a/.github/actions/setup-build/action.yml +++ b/.github/actions/setup-build/action.yml @@ -14,7 +14,7 @@ runs: steps: - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.10' @@ -28,12 +28,24 @@ runs: python -m pip install -r requirements.txt shell: bash - - name: Install Ninja - uses: llvm/actions/install-ninja@55d844821959226fab4911f96f37071c1d4c3268 + - name: Install Ninja (Linux) + if: ${{ runner.os == 'Linux' }} + run: sudo apt-get install -y ninja-build + shell: bash + + - name: Install Ninja (macOS) + if: ${{ runner.os == 'macOS' }} + run: brew install ninja + shell: bash + + - name: Install Ninja (Windows) + if: ${{ runner.os == 'Windows' }} + run: pip install ninja + shell: bash - name: Ccache for C++ compilation uses: hendrikmuhs/ccache-action@v1.2 with: key: ${{ runner.os }}-torch_mlir_build_assets-${{ inputs.cache-suffix }} - max-size: 2G + max-size: 300M verbose: 2 diff --git a/.github/workflows/bazelBuildAndTest.yml b/.github/workflows/bazelBuildAndTest.yml index dde3d22d3..d9c450e42 100644 --- a/.github/workflows/bazelBuildAndTest.yml +++ b/.github/workflows/bazelBuildAndTest.yml @@ -17,7 +17,7 @@ concurrency: jobs: ubuntu-build: name: ubuntu-x86_64 - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout torch-mlir diff --git a/.github/workflows/buildAndTest.yml b/.github/workflows/buildAndTest.yml index e95df2d80..b5ece94d0 100644 --- a/.github/workflows/buildAndTest.yml +++ b/.github/workflows/buildAndTest.yml @@ -43,16 +43,16 @@ jobs: include: # Specify OS versions - os-arch: ubuntu-x86_64 - os: ubuntu-22.04 + os: ubuntu-latest - os-arch: macos-arm64 - os: macos-12 + os: macos-latest - os-arch: windows-x86_64 os: windows-latest runs-on: ${{ matrix.os }} steps: - name: Checkout torch-mlir - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: submodules: 'true' diff --git a/.github/workflows/buildRelease.yml b/.github/workflows/buildRelease.yml index 867a2df58..988d46214 100644 --- a/.github/workflows/buildRelease.yml +++ b/.github/workflows/buildRelease.yml @@ -54,7 +54,7 @@ jobs: build_macos: name: MacOS Build - runs-on: macos-12 + runs-on: macos-latest steps: - name: Get torch-mlir uses: actions/checkout@v2 diff --git a/.github/workflows/gh-pages-releases.yml b/.github/workflows/gh-pages-releases.yml index c0236345f..ecac146b9 100644 --- a/.github/workflows/gh-pages-releases.yml +++ b/.github/workflows/gh-pages-releases.yml @@ -7,7 +7,7 @@ on: jobs: scrape_and_publish_releases: name: "Scrape and publish releases" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest # Don't run this in everyone's forks. if: github.repository == 'llvm/torch-mlir' diff --git a/.github/workflows/releaseSnapshotPackage.yml b/.github/workflows/releaseSnapshotPackage.yml index d0198a0f7..1037abca0 100644 --- a/.github/workflows/releaseSnapshotPackage.yml +++ b/.github/workflows/releaseSnapshotPackage.yml @@ -9,7 +9,7 @@ on: jobs: release_snapshot_package: name: "Tag snapshot release" - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest # Don't run this in everyone's forks. if: github.repository == 'llvm/torch-mlir' steps: