Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
32dc2279
Commit
32dc2279
authored
9 years ago
by
Alex Crichton
Browse files
Options
Downloads
Patches
Plain Diff
add a script to run everything locally
parent
fa3f6e72
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/run-all.sh
+45
-0
45 additions, 0 deletions
ci/run-all.sh
with
45 additions
and
0 deletions
ci/run-all.sh
0 → 100644
+
45
−
0
View file @
32dc2279
# This is **not** meant to be run on CI, but rather locally instead. If you're
# on a Linux machine you'll be able to run most of these, but otherwise this'll
# just attempt to run as many platforms as possible!
run
()
{
_target
=
$1
_cc
=
$2
if
[
"
$_cc
"
!=
""
]
;
then
which
$_cc
>
/dev/null
if
[
$?
-ne
0
]
;
then
echo
"
$_cc
not installed, skipping
$_target
"
return
fi
export
CC
=
$_cc
fi
if
[
!
-d
.cargo
]
;
then
mkdir
.cargo
cp
ci/cargo-config .cargo/config
fi
sh ci/run.sh
$_target
}
OS
=
`
uname
`
if
[
"
$OS
"
=
"Linux"
]
;
then
# For more info on where to get all these cross compilers see
# ci/run-travis.sh and what packages are needed on ubuntu
run x86_64-unknown-linux-gnu clang
run i686-unknown-linux-gnu clang
run x86_64-unknown-linux-musl musl-gcc
run mips-unknown-linux-gnu mips-linux-gnu-gcc
run aarch64-unknown-linux-gnu aarch64-linux-gnueabihf-gcc
run arm-unknown-linux-gnueabihf arm-linux-gnueabihf-gcc-4.7
# Prep for this by running `vagrant up freebsd` in the `ci` directory
(
cd
ci
&&
vagrant ssh freebsd
-c
\
"cd /vagrant && sh ci/run.sh x86_64-unknown-freebsd"
)
# Make sure you've run `docker pull alexcrichton/rust-libc-test` to get
# this image ahead of time.
docker run
-itv
`
pwd
`
:/clone alexcrichton/rust-libc-test
\
sh ci/run.sh arm-linux-androideabi
elif
[
"
$OS
"
=
"Darwin"
]
;
then
cargo run
--target
x86_64-unknown-linux-gnu
cargo run
--target
i686-unknown-linux-gnu
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment