diff options
author | Francis Lavoie <[email protected]> | 2024-02-09 17:31:26 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-09 15:31:26 -0700 |
commit | c78ebb3d6ad796d8e2f67f46b9cda72b7472c2e4 (patch) | |
tree | 97ffac25ad34bf65f7fc5a8ceeabaee97fef4ace /.github | |
parent | a6d9f9be5b26bf3c7e0947dbba062af0428cda03 (diff) | |
download | caddy-c78ebb3d6ad796d8e2f67f46b9cda72b7472c2e4.tar.gz caddy-c78ebb3d6ad796d8e2f67f46b9cda72b7472c2e4.zip |
chore: Rename CI jobs, run on M1 mac (#6089)
* Try macos-14 for fun
* Decouple OS names and VM names
* Shorten `cross-build-test` to `build`
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 20 | ||||
-rw-r--r-- | .github/workflows/cross-build.yml | 2 | ||||
-rw-r--r-- | .github/workflows/lint.yml | 20 |
3 files changed, 29 insertions, 13 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb58e55a6..3fe65a653 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,9 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest - - macos-latest - - windows-latest + - linux + - mac + - windows go: - '1.21' - '1.22' @@ -36,21 +36,25 @@ jobs: GO_SEMVER: '~1.22.0' # Set some variables per OS, usable via ${{ matrix.VAR }} + # OS_LABEL: the VM label from GitHub Actions (see https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories) # CADDY_BIN_PATH: the path to the compiled Caddy binary, for artifact publishing # SUCCESS: the typical value for $? per OS (Windows/pwsh returns 'True') - - os: ubuntu-latest + - os: linux + OS_LABEL: ubuntu-latest CADDY_BIN_PATH: ./cmd/caddy/caddy SUCCESS: 0 - - os: macos-latest + - os: mac + OS_LABEL: macos-14 CADDY_BIN_PATH: ./cmd/caddy/caddy SUCCESS: 0 - - os: windows-latest + - os: windows + OS_LABEL: windows-latest CADDY_BIN_PATH: ./cmd/caddy/caddy.exe SUCCESS: 'True' - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.OS_LABEL }} steps: - name: Checkout code @@ -125,7 +129,7 @@ jobs: # To return the correct result even though we set 'continue-on-error: true' # - name: Coerce correct build result - # if: matrix.os != 'windows-latest' && steps.step_test.outputs.status != ${{ matrix.SUCCESS }} + # if: matrix.os != 'windows' && steps.step_test.outputs.status != ${{ matrix.SUCCESS }} # run: | # echo "step_test ${{ steps.step_test.outputs.status }}\n" # exit 1 diff --git a/.github/workflows/cross-build.yml b/.github/workflows/cross-build.yml index c5b36d88a..b097f75ed 100644 --- a/.github/workflows/cross-build.yml +++ b/.github/workflows/cross-build.yml @@ -11,7 +11,7 @@ on: - 2.* jobs: - cross-build-test: + build: strategy: fail-fast: false matrix: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a3b3108b3..a538546cc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -23,10 +23,22 @@ jobs: strategy: matrix: os: - - ubuntu-latest - - macos-latest - - windows-latest - runs-on: ${{ matrix.os }} + - linux + - mac + - windows + + include: + - os: linux + OS_LABEL: ubuntu-latest + + - os: mac + OS_LABEL: macos-14 + + - os: windows + OS_LABEL: windows-latest + + runs-on: ${{ matrix.OS_LABEL }} + steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 |