-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
26 lines (24 loc) · 936 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: 'Setup Pashmak'
description: 'Setup Pashmak programming language in your workflow'
inputs:
pashmak-version:
description: 'Version of Pashmak that you want to install'
required: true
runs:
using: "composite"
steps:
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo ${{ github.action_path }}/scripts/linux.sh ${{ inputs.pashmak-version }}
elif [ "$RUNNER_OS" == "macOS" ]; then
sudo ${{ github.action_path }}/scripts/macos.sh ${{ inputs.pashmak-version }}
elif [ "$RUNNER_OS" == "Windows" ]; then
git clone https://github.com/pashmaklang/pashmak.git
cd pashmak
git checkout -b installation v${{ inputs.pashmak-version }}
python -m pip install pyinstaller
python -m PyInstaller src/pashmak.py --onefile
cp ./dist/pashmak.exe "$(dirname $(which python))"
pashmak --info
fi
shell: bash