Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Tracking issue for buildbot #58

Closed
2 of 5 tasks
farcaller opened this issue Jun 6, 2014 · 11 comments
Closed
2 of 5 tasks

Tracking issue for buildbot #58

farcaller opened this issue Jun 6, 2014 · 11 comments
Assignees

Comments

@farcaller
Copy link
Member

This one tracks an automated build platform to run tests and do merges automatically.

  • set up daily rustc container refresh
  • set up zinc sources pull on update (also PRs)
  • make zinc compilable in "native" mode (the host is armv7l, there's no armv7-m stdlib; should look more into compiler-rt?; also required by Implement unit testing #50)
  • submit artifacts on successful build
  • merge PR on successful tests run
@farcaller
Copy link
Member Author

Step 3 partially implemented in #59

@farcaller
Copy link
Member Author

Zinc is now buildable using native (non-cross) toolchain:

time rake PLATFORM=lpc17xx TOOLCHAIN='' RUNTIME_LIB=/usr/lib/libgcc-armv7-m.a build_all
...
real    2m16.379s
user    1m45.240s
sys 0m21.680s

@farcaller
Copy link
Member Author

Just noting the build command so that I don't loose it somewhere:

docker run --volumes-from=vol.zinc-build --volumes-from=vol.rustc-build:ro -t -i -u nobody -e LANG=en_US.UTF-8 --rm rust-build /bin/bash -c 'cd /home/zinc/zinc && git fetch && git reset --hard origin/master && rm -rf build && rake PLATFORM=lpc17xx TOOLCHAIN='' RUNTIME_LIB=/usr/lib/libgcc-armv7-m.a build_all'

@farcaller
Copy link
Member Author

Ended up setting bors (same bot as serves mozilla/rust repo), should be working now under @hacknbot name.

@farcaller
Copy link
Member Author

Bors is using travis build confirmation for green tests, not local builder for now.

@bharrisau
Copy link
Contributor

Think that is good enough for now (build bot is a little unnecessary anyway).

@bharrisau
Copy link
Contributor

We should be able to build compiler-rt for the target (it just needs the endianness defines done manually). I think it is a better solution than libgcc (though libgcc supports the spec=nano for the linker - have to check if the size increases),

@farcaller
Copy link
Member Author

My concern for buildbot is to build master with a rolling window of rust releases to verify how it changes with rust versions. But that's not that trivial to set up as I expected. I will do third step in here (native build for tests) and call it a day.

@farcaller
Copy link
Member Author

If you want to try that — open an issue and go try building compiler-rt, I'm all in. So far I didn't manage to build it correctly :-(

@bharrisau
Copy link
Contributor

I'll give it a go. If the Rust freestanding rfc goes through I will just start building a tarball of rustc + thumb platforms.

@farcaller
Copy link
Member Author

So far bors seems to fit in nicely, so closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants