Skip to content

Conversation

jbangelo
Copy link
Collaborator

No description provided.

@jbangelo jbangelo force-pushed the jbangeo/pr-build-matrix branch from fdc8883 to 5dac68e Compare August 13, 2021 23:04
@jbangelo jbangelo force-pushed the jbangeo/pr-build-matrix branch from 5dac68e to fe5777d Compare August 13, 2021 23:06
@jbangelo jbangelo force-pushed the jbangeo/pr-build-matrix branch from 9686a11 to 79f25da Compare August 14, 2021 18:42
CARGO_MAKE_RUN_CHECK_FORMAT = true
RUSTFLAGS="-D warnings"
sudo apt-get install musl-tools
sudo ln -s /usr/bin/musl-gcc /usr/bin/musl-g++
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This extra step is needed to compiler C++ files with musl. Seems odd that musl-g++ isn't installed by default...

Copy link
Contributor

@silverjam silverjam Aug 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit odd, but at least there's precedent, this is what I've used to build musl in the past: https://github.com/emk/rust-musl-builder/blob/master/Dockerfile#L74

Comment on lines +35 to +39
- name: Install LLVM and Clang # required for bindgen on Windows
uses: KyleMayes/install-llvm-action@v1
if: matrix.os == 'windows-2019'
with:
version: "10.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to manually install LLVM/Clang for bindgen to execute correctly on windows...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clang and LLVM should already be installed, but the environment vars on GitHub actions are supposedly a mess... so could be that reinstalling with this action just puts the environment in a good state.

@@ -0,0 +1,25 @@
[env]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved this into a dedicated file since cating it together wouldn't work on a Windows shell. Is there a better alternative?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine, I don't think there was a specific reason to keep the makefile.toml inside the ci config

@jbangelo jbangelo merged commit 6c9a055 into master Aug 16, 2021
@jbangelo jbangelo deleted the jbangeo/pr-build-matrix branch August 16, 2021 16:38
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.

3 participants