Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
ghcup-hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
Haskell
ghcup-hs
Commits
08ec1bd9
Verified
Commit
08ec1bd9
authored
3 years ago
by
Julian Ospald
Browse files
Options
Downloads
Patches
Plain Diff
Update release scripts
parent
b78aab88
No related branches found
Branches containing commit
Tags
ghc-8.10.2-rc2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scripts/pull_release_artifacts.sh
+49
-0
49 additions, 0 deletions
scripts/pull_release_artifacts.sh
scripts/update-sftp.sh
+32
-0
32 additions, 0 deletions
scripts/update-sftp.sh
with
81 additions
and
0 deletions
scripts/pull_release_artifacts.sh
0 → 100644
+
49
−
0
View file @
08ec1bd9
set
-eu
tag
=
v
$1
ver
=
$1
dest
=
$2
gpg_user
=
$3
mkdir
-p
"
${
dest
}
"
cd
"
${
dest
}
"
base_url
=
"https://gitlab.haskell.org/api/v4/projects/618/jobs/artifacts/
${
tag
}
/raw"
curl
-f
-o
"x86_64-apple-darwin-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/x86_64-apple-darwin-ghcup-
${
ver
}
?job=release:darwin"
curl
-f
-o
"aarch64-apple-darwin-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/aarch64-apple-darwin-ghcup-
${
ver
}
?job=release:darwin:aarch64"
curl
-f
-o
"x86_64-freebsd12-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/x86_64-portbld-freebsd-ghcup-
${
ver
}
?job=release:freebsd12"
curl
-f
-o
"x86_64-freebsd13-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/x86_64-portbld-freebsd-ghcup-
${
ver
}
?job=release:freebsd13"
curl
-f
-o
"i386-linux-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/i386-linux-ghcup-
${
ver
}
?job=release:linux:32bit"
curl
-f
-o
"x86_64-linux-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/x86_64-linux-ghcup-
${
ver
}
?job=release:linux:64bit"
curl
-f
-o
"aarch64-linux-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/aarch64-linux-ghcup-
${
ver
}
?job=release:linux:aarch64"
curl
-f
-o
"armv7-linux-ghcup-
${
ver
}
"
\
"
${
base_url
}
/out/armv7-linux-ghcup-
${
ver
}
?job=release:linux:armv7"
curl
-f
-o
"x86_64-mingw64-ghcup-
${
ver
}
.exe"
\
"
${
base_url
}
/out/x86_64-mingw64-ghcup-
${
ver
}
.exe?job=release:windows"
rm
-f
*
.sig
sha256sum
*
-ghcup-
*
>
SHA256SUMS
gpg
--detach-sign
-u
${
gpg_user
}
SHA256SUMS
for
f
in
*
-ghcup-
*
;
do
gpg
--detach-sign
-u
${
gpg_user
}
$f
;
done
This diff is collapsed.
Click to expand it.
scripts/update-sftp.sh
+
32
−
0
View file @
08ec1bd9
...
...
@@ -2,6 +2,7 @@
url
=
$1
ver
=
$2
artifacts_dir
=
$3
die
()
{
(>
&2
printf
"%s
\\
n"
"
$1
"
)
...
...
@@ -10,10 +11,38 @@ die() {
[
-z
$url
]
&&
die
"no url set"
[
-z
$ver
]
&&
die
"no version set"
[
-z
"
${
artifacts_dir
}
"
]
&&
die
"artifacts_dir not set"
[
-e
"
${
artifacts_dir
}
"
]
&&
die
"artifacts_dir
\"
${
artifacts_dir
}
\"
does not exist"
cd
"
${
artifacts_dir
}
"
sftp
$url
<<
EOF
cd ghcup
mkdir
${
ver
}
cd
${
ver
}
put SHA256SUMS
put SHA256SUMS.sig
put aarch64-apple-darwin-ghcup-
${
ver
}
put aarch64-apple-darwin-ghcup-
${
ver
}
.sig
put aarch64-linux-ghcup-
${
ver
}
put aarch64-linux-ghcup-
${
ver
}
.sig
put armv7-linux-ghcup-
${
ver
}
put armv7-linux-ghcup-
${
ver
}
.sig
put i386-linux-ghcup-
${
ver
}
put i386-linux-ghcup-
${
ver
}
.sig
put x86_64-apple-darwin-ghcup-
${
ver
}
put x86_64-apple-darwin-ghcup-
${
ver
}
.sig
put x86_64-freebsd12-ghcup-
${
ver
}
put x86_64-freebsd12-ghcup-
${
ver
}
.sig
put x86_64-freebsd13-ghcup-
${
ver
}
put x86_64-freebsd13-ghcup-
${
ver
}
.sig
put x86_64-linux-ghcup-
${
ver
}
put x86_64-linux-ghcup-
${
ver
}
.sig
put x86_64-mingw64-ghcup-
${
ver
}
.exe
put x86_64-mingw64-ghcup-
${
ver
}
.exe.sig
cd ..
rm aarch64-apple-darwin-ghcup
rm aarch64-linux-ghcup
rm armv7-linux-ghcup
...
...
@@ -36,3 +65,6 @@ symlink ${ver}/x86_64-mingw64-ghcup-${ver}.exe x86_64-mingw64-ghcup.exe
EOF
curl
-X
PURGE https://downloads.haskell.org/~ghcup/
curl
-X
PURGE https://downloads.haskell.org/ghcup/
curl
-X
PURGE https://downloads.haskell.org/~ghcup/
${
ver
}
/
curl
-X
PURGE https://downloads.haskell.org/ghcup/
${
ver
}
/
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