2021-12-18 11:55:33 -06:00
|
|
|
name: Test nightly Cranelift
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
2021-12-26 04:55:12 -06:00
|
|
|
- cron: '17 1 * * *' # At 01:17 UTC every day.
|
2021-12-18 11:55:33 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 60
|
|
|
|
|
|
|
|
steps:
|
2022-04-30 06:40:16 -05:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-18 11:55:33 -06:00
|
|
|
|
|
|
|
- name: Prepare dependencies
|
|
|
|
run: |
|
|
|
|
git config --global user.email "user@example.com"
|
|
|
|
git config --global user.name "User"
|
|
|
|
./y.rs prepare
|
|
|
|
|
|
|
|
- name: Patch Cranelift
|
|
|
|
run: |
|
|
|
|
sed -i 's/cranelift-codegen = { version = "\w*.\w*.\w*", features = \["unwind", "all-arch"\] }/cranelift-codegen = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git", features = ["unwind", "all-arch"] }/' Cargo.toml
|
|
|
|
sed -i 's/cranelift-frontend = "\w*.\w*.\w*"/cranelift-frontend = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git" }/' Cargo.toml
|
|
|
|
sed -i 's/cranelift-module = "\w*.\w*.\w*"/cranelift-module = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git" }/' Cargo.toml
|
|
|
|
sed -i 's/cranelift-native = "\w*.\w*.\w*"/cranelift-native = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git" }/' Cargo.toml
|
|
|
|
sed -i 's/cranelift-jit = { version = "\w*.\w*.\w*", optional = true }/cranelift-jit = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git", optional = true }/' Cargo.toml
|
|
|
|
sed -i 's/cranelift-object = "\w*.\w*.\w*"/cranelift-object = { git = "https:\/\/github.com\/bytecodealliance\/wasmtime.git" }/' Cargo.toml
|
|
|
|
|
2022-04-30 06:44:18 -05:00
|
|
|
sed -i 's/object = { version = "0.27.0"/object = { version = "0.28.0"/' Cargo.toml
|
2021-12-18 11:55:33 -06:00
|
|
|
|
|
|
|
cat Cargo.toml
|
|
|
|
|
|
|
|
- name: Build without unstable features
|
|
|
|
# This is the config rust-lang/rust uses for builds
|
|
|
|
run: ./y.rs build --no-unstable-features
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: ./y.rs build --sysroot none
|
|
|
|
- name: Test
|
2022-12-15 08:12:46 -06:00
|
|
|
run: ./test.sh
|