Skip to content
Snippets Groups Projects
Commit d5800786 authored by “Fractal”'s avatar “Fractal”
Browse files

Added meow & .forge-ci.yml

deleted	.gitlab-ci.yml
parent 397f4831
No related branches found
No related tags found
No related merge requests found
Pipeline #3135 failed
build-job:
stage: build
script:
./meow
artifacts:
paths:
- ./bash-static-binary-*.tar.bz2
#test-job1:
# stage: test
# script:
# - echo "This job tests something"
#test-job2:
# stage: test
# script:
# - echo "This job tests something, but takes more time than test-job1."
# - echo "After the echo commands complete, it runs the sleep command for 20 seconds"
# - echo "which simulates a test that runs 20 seconds longer than test-job1"
# - sleep 20
#deploy-prod:
# stage: deploy
# script:
# - echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1:
stage: test
script:
- echo "This job tests something"
test-job2:
stage: test
script:
- echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod:
stage: deploy
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
meow 0 → 100755
#!/bin/sh
musl_var="1.2.1"
bash_var="5.1"
wget "https://musl.libc.org/releases/musl-${musl_var}.tar.gz"
wget "https://mirrors.sarata.com/gnu/bash/bash-${bash_var}.tar.gz"
tar -xvf "musl-${musl_var}.tar.gz"
tar -xvf "bash-${bash_var}.tar.gz"
export bash_output_dir="bash-static-binary-${bash_var}"
mkdir musl-install
mkdir "${bash_output_dir}"
BASE_DIR="$(pwd)"
cd "musl-${musl_var}"
./configure --prefix="${BASE_DIR}/musl-install"
make install
cd ..
export CC=${BASE_DIR}/musl-install/bin/musl-gcc
export CFLAGS="-static"
export CFLAGS="$CFLAGS -Os"
cd "bash-${bash_var}"
./configure --prefix="${BASE_DIR}/${bash_output_dir}" \
--without-bash-malloc
make
make install
cd ..
tar --create --file "bash-static-binary-${bash_var}.tar" --verbose "${bash_output_dir}"
bzip2 --compress --best "bash-static-binary-${bash_var}.tar"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment