Skip to content

Commit 24b9c2a

Browse files
authored
Merge pull request #3 from cgay/github-ci
Support macOS
2 parents 9edcc9a + 8da6b77 commit 24b9c2a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22

33
A GitHub Action to install the Open Dylan compiler.
44

5-
To install the latest Open Dylan release:
5+
To install the latest Open Dylan release on Linux or macOS (Windows not yet
6+
supported):
67

78
```yaml
8-
- uses: dylan-lang/install-opendylan@v1
9+
- uses: dylan-lang/install-opendylan@v2
910
```
1011
1112
To install a specific released version:
1213
1314
```yaml
14-
- uses: dylan-lang/install-opendylan@v1
15+
- uses: dylan-lang/install-opendylan@v2
1516
with:
1617
version: 2020.1
1718
tag: v2020.1.0

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: install-opendylan
2-
description: Install a specific version of Open Dylan
2+
description: Install the Open Dylan compiler
33
inputs:
44
version:
55
required: false
@@ -20,7 +20,12 @@ runs:
2020
shell: bash
2121
run: |
2222
echo "Installing Open Dylan..."
23-
curl -L -o opendylan.tar.bz2 https://github.com/dylan-lang/opendylan/releases/download/${OD_TAG}/opendylan-${OD_VERSION}-x86_64-linux.tar.bz2
23+
env | sort # debug
24+
os=linux
25+
if [[ "$(uname -s)" == "Darwin" ]]; then
26+
os=darwin
27+
fi
28+
curl -L -o opendylan.tar.bz2 https://github.com/dylan-lang/opendylan/releases/download/${OD_TAG}/opendylan-${OD_VERSION}-x86_64-${os}.tar.bz2
2429
tar xfj opendylan.tar.bz2
2530
ln -s opendylan-${OD_VERSION} opendylan
2631
ln -s opendylan-${OD_VERSION}/bin/dylan-compiler

0 commit comments

Comments
 (0)