Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
6
66
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
66
Commits
cc396564
Commit
cc396564
authored
4 years ago
by
Eric Vidal
Browse files
Options
Downloads
Patches
Plain Diff
be able to switch between tag and commit for the build of the toolchain
parent
d552cde7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
build_toolchain.sh
+23
-9
23 additions, 9 deletions
build_toolchain.sh
with
24 additions
and
10 deletions
.gitlab-ci.yml
+
1
−
1
View file @
cc396564
...
...
@@ -3,7 +3,7 @@ image: obarun/base:latest
before_script
:
-
pacman -Syu --noconfirm
-
pacman -S autoconf automake binutils bison file flex gcc gettext git grep groff libtool m4 make patch pkgconf texinfo which --noconfirm
-
./build_toolchain.sh
-
./build_toolchain.sh
commit
test
:
stage
:
test
...
...
This diff is collapsed.
Click to expand it.
build_toolchain.sh
+
23
−
9
View file @
cc396564
#!/bin/sh
skalibs_tag
=
"v2.9.2.1"
execline_tag
=
"v2.6.0.1"
s6_tag
=
"v2.9.1.0"
s6_rc_tag
=
"v0.5.1.2"
oblibs_tag
=
"v0.1.0.0"
tag
=
0
if
[
"
$1
"
==
"commit"
]
;
then
tag
=
1
fi
skalibs_tag
=
"v2.10.0.0"
execline_tag
=
"v2.7.0.0"
s6_tag
=
"v2.10.0.0"
s6_rc_tag
=
"v0.5.2.1"
oblibs_tag
=
"v0.1.2.0"
check_tag
(){
if
((
tag
))
;
then
git checkout tags/
"
${
1
}
"
fi
}
## skalibs
build_skalibs
()
{
git clone https://github.com/skarnet/skalibs
cd
skalibs
git
check
out
tag
s/
"
${
skalibs_tag
}
"
check
_
tag
"
${
skalibs_tag
}
"
./configure
\
--prefix
=
/usr
\
--with-default-path
=
/usr/bin
\
...
...
@@ -26,7 +39,7 @@ build_execline() {
git clone https://github.com/skarnet/execline
cd
execline
git
check
out
tag
s/
"
${
execline_tag
}
"
check
_
tag
"
${
execline_tag
}
"
./configure
\
--prefix
=
/usr
\
--libexecdir
=
/usr/libexec
\
...
...
@@ -44,7 +57,7 @@ build_s6() {
git clone https://github.com/skarnet/s6
cd
s6
git
check
out
tag
s/
"
${
s6_tag
}
"
check
_
tag
"
${
s6_tag
}
"
./configure
\
--prefix
=
/usr
\
--bindir
=
/usr/bin
\
...
...
@@ -59,7 +72,7 @@ build_s6() {
build_s6_rc
()
{
git clone https://github.com/skarnet/s6-rc
cd
s6-rc
git
check
out
tag
s/
"
${
s6_rc_tag
}
"
check
_
tag
"
${
s6_rc_tag
}
"
./configure
\
--prefix
=
/usr
\
--bindir
=
/usr/bin
\
...
...
@@ -75,6 +88,7 @@ build_oblibs() {
git clone https://framagit.org/obarun/oblibs
cd
oblibs
check_tag
"
${
oblibs_tag
}
"
./configure
\
--enable-shared
...
...
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