mirror of
https://github.com/yaml/libyaml
synced 2026-06-08 18:28:36 +00:00
acd6f6f014
Also minor cleanup of .github/workflows/main.yml
24 lines
380 B
Bash
Executable File
24 lines
380 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
cp -r /output/libyaml.git /tmp/
|
|
cd /tmp/libyaml.git
|
|
./bootstrap
|
|
./configure
|
|
make dist
|
|
|
|
# get the tarball filename
|
|
tarballs=(yaml-*.tar.gz)
|
|
tarball=${tarballs[0]:?}
|
|
dirname=${tarball/.tar.gz/}
|
|
|
|
# Copy to output dir
|
|
cp "$tarball" /output
|
|
|
|
# Create zip archive
|
|
cd /tmp
|
|
cp "/output/$tarball" .
|
|
tar xvf "$tarball"
|
|
zip -r "/output/$dirname.zip" "$dirname"
|