all repos — hastysite @ b4dafddf39ab7c75fcecdb764312dc39b0ea8007

A high-performance static site generator.

Updated workflows.
h3rald h3rald@h3rald.com
Fri, 01 Sep 2023 13:20:54 +0000
commit

b4dafddf39ab7c75fcecdb764312dc39b0ea8007

parent

a3f239adacb885a28433cda9dfaf7b07b76e4033

2 files changed, 19 insertions(+), 14 deletions(-)

jump to
M .github/workflows/add-artifacts-to-current-releases.yml.github/workflows/add-artifacts-to-current-releases.yml

@@ -62,9 +62,7 @@ - name: Install Nim and deps

run: | curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh sh init.sh -y - nimble install -y nifty - nifty install - nifty build discount + # Build for Linux - name: Build (Linux) run: nimble build -d:release --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --mm:refc --opt:size

@@ -74,6 +72,24 @@ # Build for macOS/Windows

- name: Build (macOS, Windows) run: nimble build -d:release --opt:size --mm:refc if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest' + + # UPX compress (*nix) + - name: UPX + uses: svenstaro/upx-action@v2 + with: + files: | + hastysite + args: --best --force + if: matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' + + # UPX compress (Windows) + - name: UPX + uses: svenstaro/upx-action@v2 + with: + files: | + hastysite.exe + args: --best --force + if: matrix.os == 'windows-latest' # Retrieve ID and Name of the current (draft) release - name: "Get current release"
M .github/workflows/ci.yml.github/workflows/ci.yml

@@ -5,10 +5,8 @@ on:

# Triggers the workflow on push or pull request events but only for the master branch push: branches: [master] - tags-ignore: ["**"] pull_request: branches: [master] - tags-ignore: ["**"] # Allows you to run this workflow manually from the Actions tab workflow_dispatch:

@@ -38,15 +36,6 @@ - name: Install Nim

run: | curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh sh init.sh -y - - - name: Install nifty - run: nimble install -y nifty - - - name: Install deps - run: nifty install - - - name: Build discount - run: nifty build discount - name: Build run: nimble build --mm:refc -d:release --opt:size --gcc.exe:musl-gcc --gcc.linkerexe:musl-gcc --cpu:amd64 --os:linux