-
-
Notifications
You must be signed in to change notification settings - Fork 637
chore(ci): add cross-compile job for illumos #1830
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No 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? No Sign in to your account
Conversation
I also tried getting FreeBSD to work, but didn't get too far sadly. I don't have the time to debug this so I just put in a comment for now. (With my changes, Atuin works great on FreeBSD as well.)
- uses: actions/checkout@v3 | ||
|
||
- name: Install cross | ||
uses: taiki-e/install-action@v1 | ||
with: | ||
tool: cross | ||
|
||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
~/.cargo/git | ||
target | ||
key: ${{ matrix.target }}-cross-compile-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Run cross build common | ||
run: cross build -p atuin-common --locked --target ${{ matrix.target }} | ||
|
||
- name: Run cross build client | ||
run: cross build -p atuin-client --locked --target ${{ matrix.target }} | ||
|
||
- name: Run cross build server | ||
run: cross build -p atuin-server --locked --target ${{ matrix.target }} | ||
|
||
- name: Run cross build main | ||
run: cross build --all --locked --target ${{ matrix.target }} |
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.
I noticed that the indentation for this is slightly off from what YAML (or at least Prettier) recommends:
steps:
- uses: actions/checkout@v3
- name: Install cross
# ...
I changed it to match the rest of the file, but it may be worth fixing this at some point. (Again, happy to send a PR for this.)
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.
Again, happy to send a PR for this.
If you have the time, that would be very much appreciated! 🙏
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.
Nice one, thank you!
I actually expected it to be a bit slower, pretty impressed that it only took ~5 mins to build
Followup to #1825.
I also tried getting FreeBSD to work, but didn't get too far sadly. I don't have the time to debug this so I just put in a comment for now. (With my changes, Atuin works great on FreeBSD as well.)
Checks