From e3a6e2487e307f853bd9172a420f81be9e6bec9c Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Thu, 10 Oct 2024 02:19:57 +0900 Subject: [PATCH] CI: remove old versions and increase timeout Signed-off-by: Akihiro Suda --- .github/workflows/compile.yml | 49 ++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 9166095f..8aafc4d8 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -15,40 +15,59 @@ jobs: name: Formatting Check runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Run clang-format style check for Objective-C files. - uses: jidicula/clang-format-action@v4.8.0 + uses: jidicula/clang-format-action@v4.13.0 with: clang-format-version: '13' build: needs: formatting-check runs-on: ${{ matrix.os }} - timeout-minutes: 6 + timeout-minutes: 30 strategy: fail-fast: false matrix: os: - - macOS-11 - - macOS-12 - - macOS-13 + - macos-13 # Intel + - macos-14-large # Intel + - macos-15-large # Intel go: - - '^1.20' - - '^1.21' + - '^1.22' + - '^1.23' steps: - name: Check out repository code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - name: vet run: go vet ./... - - name: Download Linux kernel - run: make download_kernel - - name: Unit Test - run: make test - timeout-minutes: 3 - name: Build Linux run: make -C example/linux - name: Build GUI Linux run: make -C example/gui-linux + test: + needs: build + runs-on: ${{ matrix.os }} + timeout-minutes: 30 + strategy: + fail-fast: false + # Can't expand the matrix due to the flakiness of the CI infra + matrix: + os: + - macos-15-large # Intel + go: + - '^1.23' + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: Download Linux kernel + run: make download_kernel + - name: Unit Test + run: make test + timeout-minutes: 10