Execute tests using a target defined as a JSON spec (#12)
This commit is contained in:
parent
2a88451d6b
commit
111b3395a8
7
.github/workflows/m68k.yml
vendored
7
.github/workflows/m68k.yml
vendored
@ -88,6 +88,13 @@ jobs:
|
||||
sudo mount debian-m68k.img vm
|
||||
sudo cp $(which qemu-m68k-static) vm/usr/bin/
|
||||
|
||||
- name: Build sample project with target defined as JSON spec
|
||||
run: |
|
||||
./y.sh prepare --only-libcore --cross
|
||||
./y.sh build --target-triple m68k-unknown-linux-gnu --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
|
||||
./y.sh cargo build --manifest-path=./tests/hello-world/Cargo.toml --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
|
||||
./y.sh clean all
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
./y.sh prepare --only-libcore --cross
|
||||
|
26
target_specs/m68k-unknown-linux-gnu.json
Normal file
26
target_specs/m68k-unknown-linux-gnu.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"arch": "m68k",
|
||||
"cpu": "M68020",
|
||||
"crt-static-respected": true,
|
||||
"data-layout": "E-m:e-p:32:16:32-i8:8:8-i16:16:16-i32:16:32-n8:16:32-a:0:16-S16",
|
||||
"dynamic-linking": true,
|
||||
"env": "gnu",
|
||||
"has-rpath": true,
|
||||
"has-thread-local": true,
|
||||
"llvm-target": "m68k-unknown-linux-gnu",
|
||||
"max-atomic-width": 32,
|
||||
"os": "linux",
|
||||
"position-independent-executables": true,
|
||||
"relro-level": "full",
|
||||
"supported-split-debuginfo": [
|
||||
"packed",
|
||||
"unpacked",
|
||||
"off"
|
||||
],
|
||||
"target-endian": "big",
|
||||
"target-family": [
|
||||
"unix"
|
||||
],
|
||||
"target-mcount": "_mcount",
|
||||
"target-pointer-width": "32"
|
||||
}
|
Loading…
Reference in New Issue
Block a user