-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move glibc x86 Linux CI from CirrusCI to GitHub (#4373)
CirrusCI is ending their unlimited free usage so, we need to start moving as we are way over the limits and realistically can't stay under them. See: https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/
- Loading branch information
1 parent
2dc8d01
commit 2b3dbf9
Showing
7 changed files
with
230 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Nightlies | ||
|
||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
x86_64-linux: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 | ||
triple-os: linux-ubuntu22.04 | ||
triple-vendor: unknown | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu20.04-builder:20230807 | ||
name: x86-64-unknown-linux-ubuntu20.04 | ||
triple-os: linux-ubuntu20.04 | ||
triple-vendor: unknown | ||
|
||
name: ${{ matrix.name }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --user pony | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache Libs | ||
id: cache-libs | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/libs | ||
key: libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }} | ||
- name: Build Libs | ||
if: steps.cache-libs.outputs.cache-hit != 'true' | ||
run: make libs build_flags=-j8 | ||
- name: Nightly | ||
run: bash .ci-scripts/x86-64-nightly.bash | ||
env: | ||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
TRIPLE_VENDOR: ${{ matrix.triple-vendor }} | ||
TRIPLE_OS: ${{ matrix.triple-os }} | ||
- name: Send alert on failure | ||
if: ${{ failure() }} | ||
uses: zulip/github-actions-zulip@35d7ad8e98444f894dcfe1d4e17332581d28ebeb | ||
with: | ||
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }} | ||
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }} | ||
organization-url: 'https://ponylang.zulipchat.com/' | ||
to: notifications | ||
type: stream | ||
topic: ${{ github.repository }} scheduled job failure | ||
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- \d+.\d+.\d+ | ||
|
||
concurrency: release | ||
|
||
jobs: | ||
# validation to assure that we should in fact continue with the release should | ||
# be done here. the primary reason for this step is to verify that the release | ||
# was started correctly by pushing a `release-X.Y.Z` tag rather than `X.Y.Z`. | ||
pre-artefact-creation: | ||
name: Tasks to run before artefact creation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: "main" | ||
token: ${{ secrets.RELEASE_TOKEN }} | ||
- name: Validate CHANGELOG | ||
uses: ponylang/release-bot-action@0.6.1 | ||
with: | ||
entrypoint: pre-artefact-changelog-check | ||
|
||
x86_64-linux: | ||
needs: | ||
- pre-artefact-creation | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 | ||
triple-os: linux-ubuntu22.04 | ||
triple-vendor: unknown | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu20.04-builder:20230807 | ||
name: x86-64-unknown-linux-ubuntu20.04 | ||
triple-os: linux-ubuntu20.04 | ||
triple-vendor: unknown | ||
|
||
name: ${{ matrix.name }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --user pony | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache Libs | ||
id: cache-libs | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/libs | ||
key: libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }} | ||
- name: Build Libs | ||
if: steps.cache-libs.outputs.cache-hit != 'true' | ||
run: make libs build_flags=-j8 | ||
- name: Release | ||
run: bash .ci-scripts/x86-64-release.bash | ||
env: | ||
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }} | ||
TRIPLE_VENDOR: ${{ matrix.triple-vendor }} | ||
TRIPLE_OS: ${{ matrix.triple-os }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Nightlies | ||
|
||
on: | ||
schedule: | ||
- cron: "30 2 * * *" | ||
|
||
jobs: | ||
x86_64-linux: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 [release] | ||
target: test-stress-release | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 [debug] | ||
target: test-stress-debug | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 [cd] [release] | ||
target: test-stress-cd-release | ||
- image: ponylang/ponyc-ci-x86-64-unknown-linux-ubuntu22.04-builder:20230806 | ||
name: x86-64-unknown-linux-ubuntu22.04 [cd] [debug] | ||
target: test-stress-cd-debug | ||
|
||
name: ${{ matrix.name }} | ||
container: | ||
image: ${{ matrix.image }} | ||
options: --user pony | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache Libs | ||
id: cache-libs | ||
uses: actions/cache@v3 | ||
with: | ||
path: build/libs | ||
key: libs-${{ matrix.image }}-${{ hashFiles('Makefile', 'CMakeLists.txt', 'libs/CMakeLists.txt') }} | ||
- name: Build Libs | ||
if: steps.cache-libs.outputs.cache-hit != 'true' | ||
run: make libs build_flags=-j8 | ||
- name: Configure Debug Runtime | ||
run: make configure config=debug | ||
- name: Build Debug Runtime | ||
run: make build config=debug | ||
- name: Run Stress Test | ||
run: make ${{ matrix.target }} config=debug usedebugger='lldb' | ||
- name: Send alert on failure | ||
if: ${{ failure() }} | ||
uses: zulip/github-actions-zulip@35d7ad8e98444f894dcfe1d4e17332581d28ebeb | ||
with: | ||
api-key: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_API_KEY }} | ||
email: ${{ secrets.ZULIP_SCHEDULED_JOB_FAILURE_EMAIL }} | ||
organization-url: 'https://ponylang.zulipchat.com/' | ||
to: notifications | ||
type: stream | ||
topic: ${{ github.repository }} scheduled job failure | ||
content: ${{ github.server_url}}/${{ github.repository }}/actions/runs/${{ github.run_id }} failed. |