Skip to content

Commit 111b339

Browse files
authored
Execute tests using a target defined as a JSON spec (#12)
1 parent 2a88451 commit 111b339

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/m68k.yml

+7
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ jobs:
8888
sudo mount debian-m68k.img vm
8989
sudo cp $(which qemu-m68k-static) vm/usr/bin/
9090
91+
- name: Build sample project with target defined as JSON spec
92+
run: |
93+
./y.sh prepare --only-libcore --cross
94+
./y.sh build --target-triple m68k-unknown-linux-gnu --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
95+
./y.sh cargo build --manifest-path=./tests/hello-world/Cargo.toml --target ${{ github.workspace }}/target_specs/m68k-unknown-linux-gnu.json
96+
./y.sh clean all
97+
9198
- name: Build
9299
run: |
93100
./y.sh prepare --only-libcore --cross
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"arch": "m68k",
3+
"cpu": "M68020",
4+
"crt-static-respected": true,
5+
"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",
6+
"dynamic-linking": true,
7+
"env": "gnu",
8+
"has-rpath": true,
9+
"has-thread-local": true,
10+
"llvm-target": "m68k-unknown-linux-gnu",
11+
"max-atomic-width": 32,
12+
"os": "linux",
13+
"position-independent-executables": true,
14+
"relro-level": "full",
15+
"supported-split-debuginfo": [
16+
"packed",
17+
"unpacked",
18+
"off"
19+
],
20+
"target-endian": "big",
21+
"target-family": [
22+
"unix"
23+
],
24+
"target-mcount": "_mcount",
25+
"target-pointer-width": "32"
26+
}

0 commit comments

Comments
 (0)