-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix building the compiler on Alpine/musl
With https://gitlab.com/taricorp/llvm-sys.rs/-/issues/44 solved, it's now possible to build the compiler on Alpine/musl targets. This commit updates the LLVM dependencies for that, fixes a few deprecation warnings, and updates the CI configuration such that we run tests on Alpine. Changelog: fixed
- Loading branch information
1 parent
742e1c2
commit 3de7248
Showing
10 changed files
with
262 additions
and
234 deletions.
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
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 |
---|---|---|
|
@@ -63,8 +63,7 @@ jobs: | |
- name: Check the formatting | ||
run: 'cd std && cargo run -- fmt --check' | ||
|
||
linux-amd64: | ||
name: Linux AMD64 | ||
amd64-linux-gnu: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/inko-lang/ci:fedora | ||
|
@@ -73,14 +72,28 @@ jobs: | |
- uses: actions/cache@v4 | ||
with: | ||
path: '${{ env.CARGO_HOME }}' | ||
key: linux-amd64-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
key: amd64-linux-gnu-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
- name: Run compiler tests | ||
run: cargo test | ||
- name: Run stdlib tests | ||
run: 'cd std && cargo run -- test' | ||
|
||
macos-amd64: | ||
name: macOS AMD64 | ||
amd64-linux-musl: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/inko-lang/ci:alpine | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: '${{ env.CARGO_HOME }}' | ||
key: amd64-linux-musl-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
- name: Run compiler tests | ||
run: cargo test | ||
- name: Run stdlib tests | ||
run: 'cd std && cargo run -- test' | ||
|
||
amd64-mac-native: | ||
runs-on: macos-12 | ||
env: | ||
RUSTUP_HOME: ${{ github.workspace }}/.rustup-home | ||
|
@@ -91,16 +104,15 @@ jobs: | |
path: | | ||
${{ env.CARGO_HOME }} | ||
${{ env.RUSTUP_HOME }} | ||
key: mac-amd64-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
key: amd64-mac-native-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
- name: Install dependencies | ||
run: ./ci/mac.sh | ||
- name: Run compiler tests | ||
run: cargo test | ||
- name: Run stdlib tests | ||
run: 'cd std && cargo run -- test' | ||
|
||
macos-arm64: | ||
name: macOS ARM64 | ||
arm64-mac-native: | ||
runs-on: macos-14 | ||
env: | ||
RUSTUP_HOME: ${{ github.workspace }}/.rustup-home | ||
|
@@ -111,16 +123,15 @@ jobs: | |
path: | | ||
${{ env.CARGO_HOME }} | ||
${{ env.RUSTUP_HOME }} | ||
key: mac-arm64-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
key: arm64-mac-native-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
- name: Install dependencies | ||
run: ./ci/mac.sh | ||
- name: Run compiler tests | ||
run: cargo test | ||
- name: Run stdlib tests | ||
run: 'cd std && cargo run -- test' | ||
|
||
freebsd-amd64: | ||
name: FreeBSD AMD64 | ||
amd64-freebsd-native: | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTUP_HOME: ${{ github.workspace }}/.rustup-home | ||
|
@@ -131,7 +142,7 @@ jobs: | |
path: | | ||
${{ env.CARGO_HOME }} | ||
${{ env.RUSTUP_HOME }} | ||
key: freebsd-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
key: amd64-freebsd-native-${{ hashFiles('Cargo.lock', 'rust-toolchain.toml') }} | ||
- name: Run tests | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
|
Oops, something went wrong.