Drop 'feature(link_args)' (removed from nightly). Don't run tests for LuaJIT 2.0.5
This commit is contained in:
parent
0bd36b42e7
commit
e26cec5db9
|
@ -123,7 +123,6 @@ jobs:
|
||||||
target: ${{ matrix.target }}
|
target: ${{ matrix.target }}
|
||||||
override: true
|
override: true
|
||||||
- name: Run ${{ matrix.lua }} tests
|
- name: Run ${{ matrix.lua }} tests
|
||||||
if: ${{ matrix.os != 'macos-latest' || matrix.lua != 'luajit' }}
|
|
||||||
run: |
|
run: |
|
||||||
cargo test --release --features "${{ matrix.lua }} vendored"
|
cargo test --release --features "${{ matrix.lua }} vendored"
|
||||||
cargo test --release --features "${{ matrix.lua }} vendored async send serialize"
|
cargo test --release --features "${{ matrix.lua }} vendored async send serialize"
|
||||||
|
@ -135,27 +134,6 @@ jobs:
|
||||||
TRYBUILD=overwrite cargo test --release --features "${{ matrix.lua }} vendored async send serialize" -- --ignored
|
TRYBUILD=overwrite cargo test --release --features "${{ matrix.lua }} vendored async send serialize" -- --ignored
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
test_luajit_macos:
|
|
||||||
name: Test LuaJIT on macOS
|
|
||||||
runs-on: macos-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
target: x86_64-apple-darwin
|
|
||||||
override: true
|
|
||||||
- name: Run LuaJIT 2.0.5 tests
|
|
||||||
run: |
|
|
||||||
brew install luajit
|
|
||||||
cargo test --tests --release --features "luajit async send serialize" -- --test-threads=1
|
|
||||||
shell: bash
|
|
||||||
- name: Run LuaJIT vendored tests
|
|
||||||
run: |
|
|
||||||
cargo test --release --features "luajit vendored async send serialize"
|
|
||||||
shell: bash
|
|
||||||
|
|
||||||
test_modules:
|
test_modules:
|
||||||
name: Test modules
|
name: Test modules
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use tokio::runtime::Runtime;
|
use tokio::runtime::Runtime;
|
||||||
|
|
|
@ -1,15 +1,4 @@
|
||||||
#![cfg(feature = "async")]
|
#![cfg(feature = "async")]
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use bstr::{BStr, BString};
|
use bstr::{BStr, BString};
|
||||||
use mlua::{Lua, Result};
|
use mlua::{Lua, Result};
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use mlua::{Function, Lua, Result, String};
|
use mlua::{Function, Lua, Result, String};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::cell::RefCell;
|
use std::cell::RefCell;
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::str;
|
use std::str;
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use mlua::{Lua, Result, UserData};
|
use mlua::{Lua, Result, UserData};
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,4 @@
|
||||||
#![cfg(feature = "serialize")]
|
#![cfg(feature = "serialize")]
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use mlua::{Error, Lua, LuaSerdeExt, Result as LuaResult, UserData, Value};
|
use mlua::{Error, Lua, LuaSerdeExt, Result as LuaResult, UserData, Value};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
use mlua::{Lua, Result, String};
|
use mlua::{Lua, Result, String};
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use mlua::{Lua, Nil, Result, Table, TableExt, Value};
|
use mlua::{Lua, Nil, Result, Table, TableExt, Value};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::iter::FromIterator;
|
use std::iter::FromIterator;
|
||||||
use std::panic::{catch_unwind, AssertUnwindSafe};
|
use std::panic::{catch_unwind, AssertUnwindSafe};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::panic::catch_unwind;
|
use std::panic::catch_unwind;
|
||||||
|
|
||||||
use mlua::{Error, Function, Lua, Result, Thread, ThreadStatus};
|
use mlua::{Error, Function, Lua, Result, Thread, ThreadStatus};
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::os::raw::c_void;
|
use std::os::raw::c_void;
|
||||||
|
|
||||||
use mlua::{Function, LightUserData, Lua, Result};
|
use mlua::{Function, LightUserData, Lua, Result};
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
#[cfg(feature = "lua54")]
|
#[cfg(feature = "lua54")]
|
||||||
|
|
|
@ -1,15 +1,3 @@
|
||||||
#![cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
feature(link_args)
|
|
||||||
)]
|
|
||||||
|
|
||||||
#[cfg_attr(
|
|
||||||
all(feature = "luajit", target_os = "macos", target_arch = "x86_64"),
|
|
||||||
link_args = "-pagezero_size 10000 -image_base 100000000",
|
|
||||||
allow(unused_attributes)
|
|
||||||
)]
|
|
||||||
extern "system" {}
|
|
||||||
|
|
||||||
use mlua::{Lua, Result, Value};
|
use mlua::{Lua, Result, Value};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue