~h3rald/hastysite

b4dafddf39ab7c75fcecdb764312dc39b0ea8007 — h3rald 1 year, 3 months ago a3f239a hs2
Updated workflows.
2 files changed, 19 insertions(+), 14 deletions(-)

M .github/workflows/add-artifacts-to-current-releases.yml
M .github/workflows/ci.yml
M .github/workflows/add-artifacts-to-current-releases.yml => .github/workflows/add-artifacts-to-current-releases.yml +19 -3
@@ 62,9 62,7 @@ jobs:
        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


@@ 75,6 73,24 @@ jobs:
        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"
        id: current-release

M .github/workflows/ci.yml => .github/workflows/ci.yml +0 -11
@@ 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:


@@ 39,15 37,6 @@ jobs:
          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