From 67bbac79e85b41a9a81d1b5ba22880e9e0f2cffb Mon Sep 17 00:00:00 2001 From: Sertac Ozercan Date: Wed, 31 Jan 2024 07:24:23 +0000 Subject: [PATCH] ci: test docker on mac Signed-off-by: Sertac Ozercan --- .github/workflows/codeql.yml | 2 +- .github/workflows/dependency-review.yml | 2 +- .github/workflows/deploy-docs.yaml | 2 +- .github/workflows/extract-binary.yaml | 2 +- .github/workflows/lint.yaml | 4 ++-- .github/workflows/patch-models.yaml | 2 +- .github/workflows/pre-release.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/scorecards.yml | 2 +- .github/workflows/test-docker.yaml | 7 +++++-- .github/workflows/test-kubernetes.yaml | 2 +- .github/workflows/unit-test.yaml | 2 +- .github/workflows/update-models.yaml | 2 +- 13 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index cbda1d60..574b60d2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -26,7 +26,7 @@ permissions: jobs: analyze: name: Analyze - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: actions: read contents: read diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index a653d724..1dbc9b74 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -14,7 +14,7 @@ permissions: jobs: dependency-review: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index 36bc7883..3084a980 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -19,7 +19,7 @@ permissions: jobs: deploy: name: Generate docs website to GitHub Pages - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: contents: write defaults: diff --git a/.github/workflows/extract-binary.yaml b/.github/workflows/extract-binary.yaml index 4dc658c8..450d0fb7 100644 --- a/.github/workflows/extract-binary.yaml +++ b/.github/workflows/extract-binary.yaml @@ -11,7 +11,7 @@ permissions: read-all jobs: extract-binary: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 240 steps: - name: Harden Runner diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b57379e8..19be9a39 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -18,7 +18,7 @@ permissions: read-all jobs: lint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 @@ -42,4 +42,4 @@ jobs: - name: lint uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0 with: - version: v1.55.2 \ No newline at end of file + version: v1.55.2 diff --git a/.github/workflows/patch-models.yaml b/.github/workflows/patch-models.yaml index da906cd1..aeffb076 100644 --- a/.github/workflows/patch-models.yaml +++ b/.github/workflows/patch-models.yaml @@ -12,7 +12,7 @@ permissions: jobs: patch-models: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 240 strategy: fail-fast: false diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index c33d4076..bada6816 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -12,7 +12,7 @@ permissions: jobs: pre-release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 360 steps: - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b150fbdb..bf8bbc30 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,7 @@ permissions: jobs: release: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 360 steps: - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 10629b7c..14f3e242 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -20,7 +20,7 @@ permissions: read-all jobs: analysis: name: Scorecard analysis - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 permissions: # Needed to upload the results to code-scanning dashboard. security-events: write diff --git a/.github/workflows/test-docker.yaml b/.github/workflows/test-docker.yaml index 479a9bdf..0c460317 100644 --- a/.github/workflows/test-docker.yaml +++ b/.github/workflows/test-docker.yaml @@ -18,7 +18,7 @@ permissions: read-all jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} timeout-minutes: 240 strategy: fail-fast: false @@ -26,8 +26,12 @@ jobs: backend: - llama - stablediffusion + os: + - ubuntu-22.04 + - macos-14 steps: - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 + if: matrix.os == 'ubuntu-22.04' with: tool-cache: true android: true @@ -138,4 +142,3 @@ jobs: path: | /tmp/*.log /tmp/images/*.png - diff --git a/.github/workflows/test-kubernetes.yaml b/.github/workflows/test-kubernetes.yaml index 1b19b1cc..c1a55be4 100644 --- a/.github/workflows/test-kubernetes.yaml +++ b/.github/workflows/test-kubernetes.yaml @@ -18,7 +18,7 @@ permissions: read-all jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 240 steps: - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1 diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 76da4878..c488be77 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -18,7 +18,7 @@ permissions: read-all jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Harden Runner uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1 diff --git a/.github/workflows/update-models.yaml b/.github/workflows/update-models.yaml index 7a6460a9..cf6abd52 100644 --- a/.github/workflows/update-models.yaml +++ b/.github/workflows/update-models.yaml @@ -31,7 +31,7 @@ jobs: # due to github runner disk space limitations, these do not fit in to runners # - mixtral-7x8b-instruct # - mixtral-7x8b-instruct-cuda - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 timeout-minutes: 360 steps: - uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # v1.3.1