Skip to content

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

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

sunshowers
Copy link
Contributor

@sunshowers sunshowers commented Mar 6, 2024

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

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

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.)
Comment on lines +57 to +82
- 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 }}
Copy link
Contributor Author

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.)

Copy link
Member

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! 🙏

Copy link
Member

@ellie ellie left a 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

@ellie ellie merged commit 7d8b4b3 into atuinsh:main Mar 6, 2024
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants