Skip to content

Commit

Permalink
use Cirrus API to provide task config for release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
mcorino committed Mar 6, 2024
1 parent 6ee1956 commit 0741f84
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 245 deletions.
240 changes: 0 additions & 240 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,243 +102,3 @@ verify_task:

latest_test_script:
./tools/scripts/cirrus/test-wxruby3.sh

release_task:
only_if: $CIRRUS_BUILD_SOURCE == 'api'
matrix:
- name: Cirrus CI / Fedora AMD64 Release
container:
image: fedora:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: fedora
- name: Cirrus CI / Fedora ARM64 Release
arm_container:
image: fedora:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: fedora
- name: Cirrus CI / OpenSuSE Leap AMD64 Release
container:
image: opensuse/leap:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: opensuse
- name: Cirrus CI / OpenSuSE Leap ARM64 Release
arm_container:
image: opensuse/leap:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: opensuse
- name: Cirrus CI / Ubuntu AMD64 Release
container:
image: ubuntu:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: ubuntu
- name: Cirrus CI / Ubuntu ARM64 Release
arm_container:
image: ubuntu:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: ubuntu
- name: Cirrus CI / Debian AMD64 Release
container:
image: debian:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: debian
- name: Cirrus CI / Debian ARM64 Release
arm_container:
image: debian:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: debian
- name: Cirrus CI / MacOSX Monterey M1 Release
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true
- name: Cirrus CI / MacOSX Ventura M1 Release
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true
- name: Cirrus CI / MacOSX Sonoma M1 Release
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true

before_script: |
./tools/scripts/cirrus/setup-$distro.sh
# Show some information about the system.
uname -a
locale
locale -a
system_build_script: |
./tools/scripts/cirrus/setup-$distro-system-ruby.sh
./tools/scripts/cirrus/build-wxruby3.sh --binpkg 2>&1 | tee -a build-wxruby3.log
system_cleanup_script: |
./tools/scripts/cirrus/cleanup-wxruby3.sh
./tools/scripts/cirrus/setup-$distro-system-ruby.sh remove
latest_build_script:
./tools/scripts/cirrus/setup-ruby-install-latest.sh

./tools/scripts/cirrus/build-wxruby3.sh --latest --binpkg 2>&1 | tee -a build-wxruby3.log

release_script:

ruby tools/scripts/cirrus/upload-release-pkg.rb

test_release_task:
only_if: $CIRRUS_BUILD_SOURCE == 'api'
depends_on:
- Cirrus CI / Fedora AMD64 Release
- Cirrus CI / OpenSuSE Leap AMD64 Release
- Cirrus CI / Ubuntu AMD64 Release
- Cirrus CI / Debian AMD64 Release
- Cirrus CI / Fedora ARM64 Release
- Cirrus CI / OpenSuSE Leap ARM64 Release
- Cirrus CI / Ubuntu ARM64 Release
- Cirrus CI / Debian ARM64 Release
- Cirrus CI / MacOSX Monterey M1 Release
- Cirrus CI / MacOSX Ventura M1 Release
- Cirrus CI / MacOSX Sonoma M1 Release
matrix:
- name: Cirrus CI / Fedora AMD64 Release Test
container:
image: fedora:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: fedora
- name: Cirrus CI / Fedora ARM64 Release Test
arm_container:
image: fedora:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: fedora
- name: Cirrus CI / OpenSuSE Leap AMD64 Release Test
container:
image: opensuse/leap:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: opensuse
- name: Cirrus CI / OpenSuSE Leap ARM64 Release Test
arm_container:
image: opensuse/leap:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: opensuse
- name: Cirrus CI / Ubuntu AMD64 Release Test
container:
image: ubuntu:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: ubuntu
- name: Cirrus CI / Ubuntu ARM64 Release Test
arm_container:
image: ubuntu:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: ubuntu
- name: Cirrus CI / Debian AMD64 Release Test
container:
image: debian:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: debian
- name: Cirrus CI / Debian ARM64 Release Test
arm_container:
image: debian:latest
cpu: 4
memory: 8G
env:
osname: linux
distro: debian
- name: Cirrus CI / MacOSX Monterey M1 Release Test
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true
- name: Cirrus CI / MacOSX Ventura M1 Release Test
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true
- name: Cirrus CI / MacOSX Sonoma M1 Release Test
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
env:
osname: darwin
distro: macosx
latest_only: true

before_script: |
./tools/scripts/cirrus/setup-$distro.sh test
# Show some information about the system.
uname -a
locale
locale -a
system_test_script: |
./tools/scripts/cirrus/setup-$distro-system-ruby.sh
./tools/scripts/cirrus/test-wxruby3-release.sh
system_cleanup_script: |
./tools/scripts/cirrus/cleanup-wxruby3.sh
./tools/scripts/cirrus/setup-$distro-system-ruby.sh remove
latest_test_script:
./tools/scripts/cirrus/setup-ruby-install-latest.sh

./tools/scripts/cirrus/test-wxruby3-release.sh
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ jobs:
- name: Trigger Cirrus CI Release Tasks
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
ruby tools/scripts/cirrus/start_release_tasks.rb ${{ github.ref }}
ruby tools/scripts/cirrus/start_release_tasks.rb "$GITHUB_REF_NAME"
else
ruby tools/scripts/cirrus/start_release_tasks.rb
ruby tools/scripts/cirrus/start_release_tasks.rb --release "$GITHUB_REF_NAME"
fi
- name: Upload Gem as release test artifact
Expand Down
Loading

0 comments on commit 0741f84

Please sign in to comment.