From 3fb21eafd0bdf539bf5316f28f9b3c3b5c79574d Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 13 Sep 2022 18:32:00 +0100 Subject: [PATCH] ci: move macos to github actions (#1175) --- .ci/Jenkinsfile | 3 ++- .github/workflows/macos.yml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/macos.yml diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 71ac9188b13..e1c0de3a2c6 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -89,7 +89,8 @@ pipeline { axes { axis { name 'PLATFORM' - values 'ubuntu-20.04 && immutable', 'aws && aarch64', 'windows-2016 && windows-immutable', 'windows-2022 && windows-immutable', 'macos12 && x86_64' + // Orka workers are not healthy (memory and connectivity issues) + values 'ubuntu-20.04 && immutable', 'aws && aarch64', 'windows-2016 && windows-immutable', 'windows-2022 && windows-immutable' //, 'macos12 && x86_64' } } stages { diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000000..bf3e5eed775 --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,25 @@ +name: macos + +on: + pull_request: + push: + branches: + - main + - 8.* + +jobs: + macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - name: Fetch Go version from .go-version + run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV + - uses: actions/setup-go@v3 + with: + go-version: ${{ env.GO_VERSION }} + - name: Install dependencies + run: go install github.com/magefile/mage + - name: Run build + run: mage build + - name: Run test + run: mage unitTest