Skip to content

Commit

Permalink
bump version and setup new CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VitoVan committed May 6, 2023
1 parent c03a16f commit b4d9532
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 22 deletions.
48 changes: 32 additions & 16 deletions .github/workflows/pelusica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,32 @@ on:
- "test-pelusica-*"

jobs:
Web:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3

- name: Build
run: |
npm install uglify-js -g
set -x
curl -L -o calm.tgz https://github.com/VitoVan/calm/releases/download/0.1.0/calm.tgz
mkdir calm
tar xvf calm.tgz --directory=calm
ls -lah calm
export PATH=$PATH:$(pwd)/calm/
export APP_NAME=Pelusica
calm publish-web
ls -lah .
zip -r -9 ${APP_NAME}-web.zip ./web
cp *.zip ../../../
- name: GH Release
uses: softprops/[email protected]
with:
prerelease: true
files: |
*-web.zip
Linux:
runs-on: ubuntu-22.04

Expand Down Expand Up @@ -39,7 +64,7 @@ jobs:

strategy:
matrix:
os: [macos-11, macos-12, macos-10.15]
os: [macos-11, macos-12, macos-13]

env:
CI_MATRIX_OS: ${{ matrix.os }}
Expand All @@ -50,23 +75,14 @@ jobs:
- name: Build
run: |
set -x
brew install 7zip
if [ "${CI_MATRIX_OS}" = "macos-12" ]; then
export OS_SUBFIX=""
else
export OS_SUBFIX=".${CI_MATRIX_OS}"
fi
curl -L -o calm.dmg https://github.com/VitoVan/calm/releases/download/0.0.40/calm${OS_SUBFIX}.dmg
7z x calm.dmg -ocalm-dmg
mv "calm-dmg/Calm - CALM/Calm.app/Contents/MacOS/" calm
rm calm.dmg
rm calm/lib/libSDL2.dylib
cp calm/lib/libSDL2-2.0.0.dylib calm/lib/libSDL2.dylib
export OS_SUBFIX=".${CI_MATRIX_OS}"
curl -L -o calm.dmg https://github.com/VitoVan/calm/releases/download/0.1.0/calm${OS_SUBFIX}.dmg
hdiutil attach calm.dmg
cp -R "/Volumes/Calm - CALM/Calm.app/Contents/MacOS/" calm
ls -lah calm
chmod +x calm/calm
chmod +x calm/sbcl/bin/sbcl
rm calm.dmg
export PATH=$PATH:$(pwd)/calm/
export APP_VERSION=0.0.1
export APP_VERSION=0.0.4
export APP_ID=com.vitovan.pelusica
export APP_NAME=Pelusica
calm publish
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Survive and make noises.

Download:

[![Linux Download](images/linux.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.AppImage) [![macOS Monterey Download](images/macos-monterey.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.dmg) [![Windows Download](images/windows.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.exe) [![macOS Big Sur Download](images/macos-bigsur.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.macos-11.dmg) [![macOS Catalina Download](images/macos-catalina.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.macos-10.15.dmg)
[![Linux Download](https://img.shields.io/badge/Linux-glibc%202.35+-FFD032.svg?logo=linux)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.AppImage) [![macOS Ventura Download](https://img.shields.io/badge/macOS-Ventura-black?logo=apple)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.macos-13.dmg) [![Windows Download](images/windows.svg)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.exe) [![macOS Monterey Download](https://img.shields.io/badge/macOS-Monterey-white?logo=apple)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.macos-12.dmg) [![macOS Big Sur Download](https://img.shields.io/badge/macOS-Big%20Sur-white?logo=apple)](https://github.com/VitoVan/pelusica/releases/latest/download/Pelusica.macos-11.dmg)

<img width="400" src="images/pelusica.png" /> <img width="400" src="images/pelusica-dark.png" />

Expand Down
9 changes: 9 additions & 0 deletions canvas.lisp
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
;; pelusica 0.0.4

(in-package #:calm)

#-jscl
(let ((required-version "0.1.0"))
(unless (string>= *calm-version* required-version)
(format t "Sorry, CALM ~A is needed, older version (current: ~A) of CALM won't work.~%"
required-version *calm-version*)
(uiop:quit 42)))

;;
;; the swank server is for debugging, for usage please check
;; Emacs:
Expand Down
1 change: 0 additions & 1 deletion images/linux.svg

This file was deleted.

1 change: 0 additions & 1 deletion images/macos-bigsur.svg

This file was deleted.

1 change: 0 additions & 1 deletion images/macos-catalina.svg

This file was deleted.

1 change: 0 additions & 1 deletion images/macos-monterey.svg

This file was deleted.

Loading

0 comments on commit b4d9532

Please sign in to comment.