return to erlang target

This commit is contained in:
Lunarmagpie 2023-03-10 06:04:01 -05:00
parent bff3b93569
commit 3a21fb37e0
4 changed files with 7 additions and 22 deletions

View file

@ -8,7 +8,7 @@ RUN for i in $(seq 1001 1500); do \
useradd -M runner$i -g $i -u $i ; \
done
RUN apt-get update && \
apt-get install -y git rsync libxml2 gnupg tar coreutils util-linux libc6-dev \
apt-get install -y git libxml2 gnupg tar coreutils util-linux libc6-dev \
binutils build-essential locales libpcre3-dev libevent-dev libgmp3-dev \
libncurses6 libncurses5 libedit-dev libseccomp-dev rename procps python3 \
libreadline-dev libblas-dev liblapack-dev libpcre3-dev libarpack2-dev \

View file

@ -1,10 +1,7 @@
#!/usr/bin/env bash
# Install Node
source ../../node/16.3.0/build.sh
# Install Erlang
# source ../../erlang/23.0.0/build.sh
source ../../erlang/23.0.0/build.sh
# Install Gleam
curl -L "https://github.com/gleam-lang/gleam/releases/download/v0.27.0/gleam-v0.27.0-x86_64-unknown-linux-musl.tar.gz" --output gleam.tar.gz
@ -17,4 +14,4 @@ source ./environment
# Install the standard library
gleam new project --skip-git
cd project
gleam build --target=javascript
gleam build

View file

@ -1,24 +1,12 @@
#!/usr/bin/env bash
# echo "Printing Empty Directory"
# ls -R -a
# echo "Printing piston files"
# cd /piston/packages/gleam/0.27.0/
# ls -R -a
gleam new project --skip-git
mkdir project/build
rsync /piston/packages/gleam/0.27.0/project/manifest.toml project/manifest.toml
rsync /piston/packages/gleam/0.27.0/project/build/packages* project/build -r
# rsync template_project/build/packages* project/build -r
# rsync template_project/manifest.toml project/manifest.toml
cp /piston/packages/gleam/0.27.0/project/manifest.toml project/manifest.toml
cp /piston/packages/gleam/0.27.0/project/build/packages* project/build -r || true
cat $1 > project/src/project.gleam
cd project
# echo "Printing Copied Files"
ls -R -a
gleam build --target=javascript
gleam build

View file

@ -4,4 +4,4 @@
shift
cd project
gleam run --target=javascript -- "$@"
gleam run -- "$@"