Skip to content

Commit

Permalink
ci(GITHUB): deprecate monterey builds
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Dec 4, 2024
1 parent ae073a8 commit 0f675d5
Showing 1 changed file with 30 additions and 21 deletions.
51 changes: 30 additions & 21 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,15 @@ jobs:

# Only on tags, main and production branches.

runs-on: macos-${{ matrix.os }}
runs-on: macos-${{ matrix.os.version }}
strategy:
max-parallel: 4
matrix:
os: [12, 13]
platform: [x86_64]
os:
- version: 13
platform: x86_64
- version: 14
platform: arm64
python-version: [3.11.11]

steps:
Expand Down Expand Up @@ -101,30 +104,30 @@ jobs:
if: steps.branch_filter.outputs.match == 'TRUE'
uses: actions/download-artifact@v3
with:
name: built_binary_${{ matrix.os }}_${{ matrix.platform }}_${{ env.BRANCH_OR_TAG }}
name: built_binary_${{ matrix.os.version }}_${{ matrix.os.platform }}_${{ env.BRANCH_OR_TAG }}

- name: Apply Test -- Clear Quarantine Attribute
if: steps.branch_filter.outputs.match == 'TRUE'
run: |
tar xvzf mac_maker_${{ matrix.os }}_${{ matrix.platform }}_${BRANCH_OR_TAG}.tar.gz
xattr -d -r com.apple.quarantine mac_maker_${{ matrix.os }}_${{ matrix.platform }}_${BRANCH_OR_TAG}
tar xvzf mac_maker_${{ matrix.os.version }}_${{ matrix.os.platform }}_${BRANCH_OR_TAG}.tar.gz
xattr -d -r com.apple.quarantine mac_maker_${{ matrix.os.version }}_${{ matrix.os.platform }}_${BRANCH_OR_TAG}
- name: Apply Test -- Apply a Profile
if: steps.branch_filter.outputs.match == 'TRUE'
run: |
cd mac_maker_${{ matrix.os }}_${{ matrix.platform }}_${BRANCH_OR_TAG}
cd mac_maker_${{ matrix.os.version }}_${{ matrix.os.platform }}_${BRANCH_OR_TAG}
export ANSIBLE_BECOME_PASSWORD="skip the prompt"
./mac_maker apply github https://github.com/osx-provisioner/profile-example.git
- name: Apply Test -- Report Job Status (Success)
if: steps.branch_filter.outputs.match == 'TRUE' && env.VERBOSE_NOTIFICATIONS == '1'
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: ${{ matrix.os }} profile application using built binary (${{ matrix.os }} ${{ matrix.platform }}) was successful"
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: ${{ matrix.os }} profile application using built binary (${{ matrix.os.version }} ${{ matrix.os.platform }}) was successful"
- name: Apply Test -- Report Job Status (Failure)
if: failure()
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: ${{ matrix.os }} profile application using built binary (${{ matrix.os }} ${{ matrix.platform }}) failed!"
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: ${{ matrix.os.version }} profile application using built binary (${{ matrix.os }} ${{ matrix.os.platform }}) failed!"
attach_release_binaries:
needs: [create_release]
Expand All @@ -133,8 +136,11 @@ jobs:
strategy:
max-parallel: 4
matrix:
os: [12, 13]
platform: [x86_64]
os:
- version: 13
platform: x86_64
- version: 14
platform: arm64
python-version: [3.11.11]

steps:
Expand Down Expand Up @@ -163,7 +169,7 @@ jobs:
if: steps.branch_filter.outputs.match == 'TRUE'
uses: actions/download-artifact@v3
with:
name: built_binary_${{ matrix.os }}_${{ matrix.platform }}_${{ env.BRANCH_OR_TAG }}
name: built_binary_${{ matrix.os.version }}_${{ matrix.os.platform }}_${{ env.BRANCH_OR_TAG }}

- name: Attach Release Binaries -- Identify Binary
if: steps.branch_filter.outputs.match == 'TRUE'
Expand Down Expand Up @@ -474,12 +480,15 @@ jobs:

# Only on tags, main and production branches.

runs-on: macos-${{ matrix.os }}
runs-on: macos-${{ matrix.os.version }}
strategy:
max-parallel: 4
matrix:
os: [12, 13]
platform: [x86_64]
os:
- version: 13
platform: x86_64
- version: 14
platform: arm64
python-version: [3.11.11]

steps:
Expand Down Expand Up @@ -528,8 +537,8 @@ jobs:
./scripts/build.sh binary "${OS_VERSION}" "${BRANCH_OR_TAG}"
env:
PYENV_VERSION: ${{ matrix.python-version }}
OS_VERSION: ${{ matrix.os }}
PLATFORM: ${{ matrix.platform }}
OS_VERSION: ${{ matrix.os.version }}
PLATFORM: ${{ matrix.os.platform }}

- name: OSX Build -- Test the version command
if: steps.branch_filter.outputs.match == 'TRUE'
Expand All @@ -543,17 +552,17 @@ jobs:
if: steps.branch_filter.outputs.match == 'TRUE'
uses: actions/upload-artifact@v3
with:
name: built_binary_${{ matrix.os }}_${{ matrix.platform }}_${{ env.BRANCH_OR_TAG }}
path: ./dist/mac_maker_${{ matrix.os }}_${{ matrix.platform }}_${{ env.BRANCH_OR_TAG }}.tar.gz
name: built_binary_${{ matrix.os.version }}_${{ matrix.os.platform }}_${{ env.BRANCH_OR_TAG }}
path: ./dist/mac_maker_${{ matrix.os.version }}_${{ matrix.os.platform }}_${{ env.BRANCH_OR_TAG }}.tar.gz
retention-days: 1
if-no-files-found: error

- name: OSX Build -- Report Job Status (Success)
if: steps.branch_filter.outputs.match == 'TRUE' && env.VERBOSE_NOTIFICATIONS == '1'
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: ${{ matrix.os }} binary build for Python ${PYTHON_VERSION} was successful"
./.github/scripts/notifications.sh "${NOTIFICATION}" ":white_check_mark: ${{ matrix.os.version }} binary build for Python ${PYTHON_VERSION} was successful"
- name: OSX Build -- Report Job Status (Failure)
if: failure()
run: |
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: ${{ matrix.os }} binary build for Python ${PYTHON_VERSION} failed!"
./.github/scripts/notifications.sh "${NOTIFICATION}" ":x: ${{ matrix.os.version }} binary build for Python ${PYTHON_VERSION} failed!"

0 comments on commit 0f675d5

Please sign in to comment.