|
8 | 8 | workflow_dispatch: |
9 | 9 |
|
10 | 10 | jobs: |
11 | | - build: |
| 11 | + # Job for Ubuntu |
| 12 | + ubuntu: |
12 | 13 | runs-on: ubuntu-latest |
13 | 14 |
|
14 | 15 | steps: |
15 | | - # Check out the repository |
16 | 16 | - uses: actions/checkout@v4 |
17 | 17 |
|
18 | | - # Install Crystal and dependencies |
| 18 | + # Install Crystal and dependencies on Ubuntu |
19 | 19 | - name: Install Crystal |
20 | 20 | run: | |
21 | 21 | sudo apt-get update |
|
35 | 35 | # Install dependencies using shards |
36 | 36 | - name: Install dependencies |
37 | 37 | run: shards install |
| 38 | + |
| 39 | + # Job for macOS latest (macOS 12 or higher) |
| 40 | + macos-latest: |
| 41 | + runs-on: macos-latest |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + |
| 46 | + # Install Crystal and dependencies on macOS |
| 47 | + - name: Install Crystal |
| 48 | + run: | |
| 49 | + brew install crystal |
| 50 | +
|
| 51 | + # Install shards (Crystal's dependency manager) |
| 52 | + - name: Install shards |
| 53 | + run: | |
| 54 | + brew install shards |
| 55 | +
|
| 56 | + # Install dependencies using shards |
| 57 | + - name: Install dependencies |
| 58 | + run: shards install |
| 59 | + |
| 60 | + # Job for older macOS (macOS 11 - Big Sur) |
| 61 | + macos-11: |
| 62 | + runs-on: macos-11 |
| 63 | + |
| 64 | + steps: |
| 65 | + - uses: actions/checkout@v4 |
| 66 | + |
| 67 | + # Install Crystal and dependencies on macOS 11 (Big Sur) |
| 68 | + - name: Install Crystal |
| 69 | + run: | |
| 70 | + brew install crystal |
| 71 | +
|
| 72 | + # Install shards (Crystal's dependency manager) |
| 73 | + - name: Install shards |
| 74 | + run: | |
| 75 | + brew install shards |
| 76 | +
|
| 77 | + # Install dependencies using shards |
| 78 | + - name: Install dependencies |
| 79 | + run: shards install |
| 80 | + |
| 81 | + |
| 82 | + # Job for Windows |
| 83 | + windows: |
| 84 | + runs-on: windows-latest |
| 85 | + |
| 86 | + steps: |
| 87 | + - uses: actions/checkout@v4 |
| 88 | + |
| 89 | + # Install Crystal and dependencies on Windows |
| 90 | + - name: Install Crystal |
| 91 | + run: | |
| 92 | + choco install crystal |
| 93 | +
|
| 94 | + # Install shards (Crystal's dependency manager) |
| 95 | + - name: Install shards |
| 96 | + run: | |
| 97 | + choco install shards |
| 98 | +
|
| 99 | + # Install dependencies using shards |
| 100 | + - name: Install dependencies |
| 101 | + run: shards install |
0 commit comments