-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix endianness of non-native 128-bit integers
- Loading branch information
Showing
18 changed files
with
332 additions
and
287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,8 @@ permissions: | |
env: | ||
# Enable backtraces for easier debugging | ||
RUST_BACKTRACE: 1 | ||
# TODO: remove when confish.sh is removed. | ||
OVERWRITE_TARGET_TRIPLE: m68k-unknown-linux-gnu | ||
|
||
jobs: | ||
build: | ||
|
@@ -26,13 +28,14 @@ jobs: | |
commands: [ | ||
"--mini-tests", | ||
"--std-tests", | ||
"--test-libcore", | ||
"--extended-rand-tests", | ||
"--extended-regex-example-tests", | ||
"--extended-regex-tests", | ||
"--test-successful-rustc --nb-parts 2 --current-part 0", | ||
"--test-successful-rustc --nb-parts 2 --current-part 1", | ||
"--test-failing-rustc", | ||
# TODO(antoyo): fix those on m68k. | ||
#"--test-libcore", | ||
#"--extended-rand-tests", | ||
#"--extended-regex-example-tests", | ||
#"--extended-regex-tests", | ||
#"--test-successful-rustc --nb-parts 2 --current-part 0", | ||
#"--test-successful-rustc --nb-parts 2 --current-part 1", | ||
#"--test-failing-rustc", | ||
] | ||
|
||
steps: | ||
|
@@ -92,11 +95,11 @@ jobs: | |
path: ~/.cargo/registry | ||
key: ${{ runner.os }}-cargo-registry2-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Cache cargo index | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cargo/git | ||
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
#- name: Cache cargo index | ||
#uses: actions/cache@v3 | ||
#with: | ||
#path: ~/.cargo/git | ||
#key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | ||
|
||
- name: Cache cargo target dir | ||
uses: actions/cache@v3 | ||
|
@@ -122,6 +125,7 @@ jobs: | |
} | ||
EOF | ||
mkdir vm | ||
pwd # TODO: remove | ||
sudo mount debian-m68k.img vm | ||
m68k-unknown-linux-gnu-gcc main.c -o main | ||
sudo cp main vm/home/main | ||
|
@@ -140,20 +144,16 @@ jobs: | |
- name: Build | ||
run: | | ||
./y.sh prepare --only-libcore | ||
# TODO: move into prepare command under a flag --cross-patches? | ||
pushd build_sysroot/sysroot_src | ||
git am ../../cross_patches/*.patch | ||
popd | ||
./build.sh | ||
cargo test | ||
./y.sh prepare --only-libcore --cross | ||
./y.sh build --target-triple m68k-unknown-linux-gnu | ||
CG_GCC_TEST_TARGET=m68k-unknown-linux-gnu cargo test | ||
./clean_all.sh | ||
- name: Prepare dependencies | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "User" | ||
./y.sh prepare | ||
./y.sh prepare --cross | ||
# Compile is a separate step, as the actions-rs/cargo action supports error annotations | ||
- name: Compile | ||
|
@@ -167,4 +167,4 @@ jobs: | |
|
||
- name: Run tests | ||
run: | | ||
./test.sh --release --clean --build-sysroot | ||
./test.sh --release --clean --build-sysroot ${{ matrix.commands }} |
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
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
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
Oops, something went wrong.