Skip to content

chore(ci): add cross-compile job for illumos - #1830

Merged
ellie merged 1 commit into
atuinsh:mainfrom
sunshowers:illumos-ci
Mar 6, 2024
Merged

chore(ci): add cross-compile job for illumos#1830
ellie merged 1 commit into
atuinsh:mainfrom
sunshowers:illumos-ci

Conversation

@sunshowers

@sunshowers sunshowers commented Mar 6, 2024

Copy link
Copy Markdown
Contributor

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

@ellie ellie left a comment

Copy link
Copy Markdown
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants