-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Optimize GH workflows #6487
Optimize GH workflows #6487
Conversation
.github/workflows/build_and_test.yml
Outdated
@@ -9,7 +9,7 @@ jobs: | |||
build: | |||
strategy: | |||
matrix: | |||
runs-on: [ubuntu-latest, macos-13, macos-13-xlarge] | |||
runs-on: [ubuntu-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separated workflow for running the tests on MacOS, as well.
@@ -0,0 +1,48 @@ | |||
name: Build and smoke test (MacOS) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate workflow, for simplicity (creating a separate run-on matrix with respect to the trigger & target is quite complex).
build: | ||
strategy: | ||
matrix: | ||
runs-on: [macos-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for macos-latest
. This is ARM64.
@@ -129,7 +129,7 @@ jobs: | |||
zip -r -j ${ARCHIVE} ${BUILD_DIR} | |||
|
|||
- name: Save artifacts | |||
uses: actions/upload-artifact@v3 | |||
uses: actions/upload-artifact@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necessary, due to:
Error: This request has been automatically failed because it uses a deprecated version of `actions/download-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/
@@ -15,7 +15,7 @@ jobs: | |||
build: | |||
strategy: | |||
matrix: | |||
runs-on: [ubuntu-latest, macos-13, macos-13-xlarge] | |||
runs-on: [ubuntu-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We weren't using the MacOS binaries as official build artifacts, anyway:
@@ -32,5 +30,5 @@ jobs: | |||
context: . | |||
file: ./docker/keygenerator/Dockerfile | |||
platforms: linux/amd64,linux/arm64 | |||
push: ${{ github.event_name != 'pull_request' }} | |||
push: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed by Dani here:
|
||
on: | ||
pull_request: | ||
branches: [master] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for PRs against master.
Optimize running of GitHub workflows. Use
macos-latest
instead ofmacos-13-xlarge
.