-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(CI): Add nightly build for macOS arm64 #3166
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0b0e2db
chore(CI): Add nightly build for macOS arm64
DaughterOfMars b2fd27e
remove extra flag
DaughterOfMars da2e3dc
use github runners
DaughterOfMars 6552279
refactor to use matrix
DaughterOfMars 588bf16
add github token env
DaughterOfMars 3b9b97a
try ssh-agent action
DaughterOfMars 852ee80
Merge branch 'develop' into dev-tools/nightly-arm64
DaughterOfMars f8698e4
refactor with release changes
DaughterOfMars 1ba8a1e
dprint
DaughterOfMars d6b8e81
pin ssh-setup-action
DaughterOfMars 5a053c2
use bundled mysqlclient
DaughterOfMars b65101d
dprint
DaughterOfMars 7f9cdb6
move deps around
DaughterOfMars 89cf69b
Merge branch 'develop' into dev-tools/nightly-arm64
DaughterOfMars 3be34f5
dprint
DaughterOfMars f052726
refactor features
DaughterOfMars b18ca73
Merge branch 'develop' into dev-tools/nightly-arm64
DaughterOfMars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ on: | |
workflow_dispatch: | ||
|
||
env: | ||
BINARY_LIST_FILE: "./binary-build-list.json" | ||
CARGO_TERM_COLOR: always | ||
# Disable incremental compilation. | ||
# | ||
|
@@ -30,11 +31,39 @@ env: | |
jobs: | ||
release: | ||
name: build release binaries | ||
runs-on: [self-hosted] | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ | ||
self-hosted, # ubuntu-x86_64 | ||
macos-latest, # macos-arm64 | ||
] | ||
steps: | ||
# TODO: Remove when iota-sim is public https://github.com/iotaledger/iota/issues/2149 | ||
- name: Set up SSH (MacOs only) | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
uses: MrSquaare/ssh-setup-action@2d028b70b5e397cf8314c6eaea229a6c3e34977a # pin@v3 | ||
with: | ||
host: github.com | ||
private-key: ${{ secrets.SSH_PRIVATE_KEY_IOTA_CI }} | ||
private-key-name: github-ppk | ||
|
||
- name: Install postgres (MacOS arm64) | ||
if: ${{ matrix.os == 'macos-latest' }} | ||
shell: bash | ||
env: | ||
PQ_LIB_DIR: "$(brew --prefix libpq)/lib" | ||
LIBRARY_PATH: "/opt/homebrew/lib:$LIBRARY_PATH" | ||
PKG_CONFIG_PATH: "/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH" | ||
PATH: "/opt/homebrew/bin:$PATH" | ||
run: | | ||
brew install postgresql | ||
|
||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # pin@v4 | ||
|
||
- name: cargo build | ||
uses: actions-rs/cargo@ae10961054e4aa8b4aa7dffede299aaf087aa33b # [email protected] | ||
with: | ||
command: build | ||
args: --all-targets --all-features --release --profile=release | ||
args: --all-targets --all-features --release |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@adrian-grassl do you just want to have it built here to test that it compiles or do you want a binary of it? Because then it would need to be added to
build-nightly.yml
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.
Hey Thoralf, back then I wanted a binary of it, but to be honest I personally don't need it anymore right now. Maybe however it's interesting to others as well.