Skip to content

Commit e528795

Browse files
committed
Add CI
1 parent 772f795 commit e528795

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.cirrus.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
task:
2+
name: Linux amd64 nightly
3+
container:
4+
image: rustlang/rust:nightly
5+
cpu: 1
6+
memory: 1
7+
setup_script:
8+
- apt-get update
9+
- apt-get install -yqq nasm bsdmainutils
10+
build_script:
11+
- ./build.sh
12+
test_script:
13+
- ./tinyrust
14+
- test "$(./tinyrust)" == 'Hello!'
15+
- test "$(wc -c < tinyrust)" -eq 137

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Using Rust to make a 137-byte static AMD64 Linux binary
22

3+
[![Build Status](https://api.cirrus-ci.com/github/tormol/tiny-rust-executable.svg)](https://cirrus-ci.com/github/tormol/tiny-rust-executable)
4+
35
Requires nightly Rust because it uses the `sc` crate to make direct
46
system calls.
57

0 commit comments

Comments
 (0)