|
| 1 | +name: Test CLI Launchers on all the platforms |
| 2 | +on: |
| 3 | + push: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +jobs: |
| 7 | + linux-x64: |
| 8 | + name: Deploy and Test on Linux x64 architecture |
| 9 | + runs-on: ubuntu-latest |
| 10 | + steps: |
| 11 | + - uses: actions/checkout@v4 |
| 12 | + - name: Set up JDK 17 |
| 13 | + uses: actions/setup-java@v4 |
| 14 | + with: |
| 15 | + java-version: '17' |
| 16 | + distribution: 'temurin' |
| 17 | + cache: 'sbt' |
| 18 | + - name: Build the launcher command |
| 19 | + run: sbt "dist-linux-x64/pack" |
| 20 | + - run: ./dist/linux-x64/target/pack/bin/scala --version |
| 21 | + |
| 22 | + linux-aarch64: |
| 23 | + name: Deploy and Test on Linux ARM64 architecture |
| 24 | + runs-on: macos-latest |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + - name: Set up JDK 17 |
| 28 | + uses: actions/setup-java@v4 |
| 29 | + with: |
| 30 | + java-version: '17' |
| 31 | + distribution: 'temurin' |
| 32 | + cache: 'sbt' |
| 33 | + # https://github.com/actions/runner-images/issues/9369 |
| 34 | + - name: Install sbt |
| 35 | + run: brew install sbt |
| 36 | + - name: Build the launcher command |
| 37 | + run: sbt "dist-linux-aarch64/pack" |
| 38 | + - run: ./dist/linux-aarch64/target/pack/bin/scala --version |
| 39 | + |
| 40 | + mac-x64: |
| 41 | + name: Deploy and Test on Mac x64 architecture |
| 42 | + runs-on: macos-13 |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - name: Set up JDK 17 |
| 46 | + uses: actions/setup-java@v4 |
| 47 | + with: |
| 48 | + java-version: '17' |
| 49 | + distribution: 'temurin' |
| 50 | + cache: 'sbt' |
| 51 | + # https://github.com/actions/runner-images/issues/9369 |
| 52 | + - name: Install sbt |
| 53 | + run: brew install sbt |
| 54 | + - name: Build the launcher command |
| 55 | + run: sbt "dist-mac-x64/pack" |
| 56 | + - run: ./dist/mac-x64/target/pack/bin/scala --version |
| 57 | + |
| 58 | + mac-aarch64: |
| 59 | + name: Deploy and Test on Mac ARM64 architecture |
| 60 | + runs-on: macos-latest |
| 61 | + steps: |
| 62 | + - uses: actions/checkout@v4 |
| 63 | + - name: Set up JDK 17 |
| 64 | + uses: actions/setup-java@v4 |
| 65 | + with: |
| 66 | + java-version: '17' |
| 67 | + distribution: 'temurin' |
| 68 | + cache: 'sbt' |
| 69 | + # https://github.com/actions/runner-images/issues/9369 |
| 70 | + - name: Install sbt |
| 71 | + run: brew install sbt |
| 72 | + - name: Build the launcher command |
| 73 | + run: sbt "dist-mac-aarch64/pack" |
| 74 | + - run: ./dist/mac-aarch64/target/pack/bin/scala --version |
| 75 | + |
| 76 | + win-x64: |
| 77 | + name: Deploy and Test on Windows x64 architecture |
| 78 | + runs-on: windows-latest |
| 79 | + steps: |
| 80 | + - uses: actions/checkout@v4 |
| 81 | + - name: Set up JDK 17 |
| 82 | + uses: actions/setup-java@v4 |
| 83 | + with: |
| 84 | + java-version: '17' |
| 85 | + distribution: 'temurin' |
| 86 | + cache: 'sbt' |
| 87 | + - name: Build the launcher command |
| 88 | + run: sbt "dist-win-x64/pack" |
| 89 | + - run: ./dist/win-x64/target/pack/bin/scala --version |
0 commit comments