Skip to content
Permalink
Browse files

actions now upload the .zip as the archive, not the raw binary (#346)

* docker no longer gets luarocks (no fennel), and builds the zip, using all cores

* remove luarocks

* fix line ending issue

* add zip as a dependency

* actions now upload the .zip as the archive, not the raw binary

* capture the directory as the artifact, not the zip itself (the contents will be zipped)
  • Loading branch information
trentgill committed Jul 7, 2020
1 parent 6c04e6c commit 030b36e374efd5b7be3c1732c4a1f071901a3450
Showing with 7 additions and 12 deletions.
  1. +2 −2 .github/workflows/build-release.yml
  2. +2 −2 .github/workflows/build.yml
  3. +3 −8 Dockerfile
@@ -18,5 +18,5 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: crow-${{ github.sha }}.bin
path: crow.bin
name: crow-${{ github.sha }}.zip
path: crow-*/
@@ -14,5 +14,5 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@master
with:
name: crow-${{ github.sha }}.bin
path: crow.bin
name: crow-${{ github.sha }}.zip
path: crow-*/
@@ -12,21 +12,16 @@ RUN apt-get update && \
git \
libreadline-dev \
unzip \
zip \
wget && \
rm -rf /var/lib/apt/lists/*

RUN wget --quiet https://www.lua.org/ftp/lua-5.3.4.tar.gz -O lua.tar.gz && \
wget --quiet https://luarocks.org/releases/luarocks-3.0.4.tar.gz -O luarocks.tar.gz
RUN wget --quiet https://www.lua.org/ftp/lua-5.3.4.tar.gz -O lua.tar.gz
RUN tar -xzf lua.tar.gz && \
cd lua-5.3.4 && \
make linux test && \
make install && \
cd .. && \
tar -xzpf luarocks.tar.gz && \
cd luarocks-3.0.4 && \
./configure && make bootstrap && \
cd ..
RUN luarocks install fennel

WORKDIR /target
ENTRYPOINT ["make"]
ENTRYPOINT ["make", "-j", "R=1", "zip"]

0 comments on commit 030b36e

Please sign in to comment.