Skip to content

Commit

Permalink
feat: rework release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
bodyangug committed Aug 2, 2024
1 parent 84d8c97 commit ab556aa
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- {os: ubuntu-latest, preset: linuxX64}
- {os: windows-latest, preset: mingwX64}
- {os: macos-12, preset: macosX64}
- {os: macos-14, preset: macosArm64}
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -23,13 +24,13 @@ jobs:
java-version: 8.0
distribution: zulu
- uses: gradle/wrapper-validation-action@v1
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: chmod +x ${{ github.workspace }}/gradlew
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: chmod +x ${{ github.workspace }}/setup-shared-libs.sh
- if: matrix.config.preset == 'linuxX64'
run: sudo apt-get install -y libtinfo5
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: ${{ github.workspace }}/setup-shared-libs.sh
- if: matrix.config.preset == 'mingwX64'
run: ${{ github.workspace }}/setup-shared-libs.bat
Expand Down Expand Up @@ -78,6 +79,7 @@ jobs:
- {os: ubuntu-latest, preset: linuxX64}
- {os: windows-latest, preset: mingwX64}
- {os: macos-12, preset: macosX64}
- {os: macos-14, preset: macosArm64}
runs-on: ${{ matrix.config.os }}
outputs:
tag: ${{ needs.release.outputs.tag }}
Expand All @@ -90,13 +92,13 @@ jobs:
java-version: 8.0
distribution: zulu
- uses: gradle/wrapper-validation-action@v1
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: chmod +x ${{ github.workspace }}/gradlew
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: chmod +x ${{ github.workspace }}/setup-shared-libs.sh
- if: matrix.config.preset == 'linuxX64'
run: sudo apt-get install -y libtinfo5
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64'
- if: matrix.config.preset == 'linuxX64' || matrix.config.preset == 'macosX64' || matrix.config.preset == 'macosArm64'
run: ${{ github.workspace }}/setup-shared-libs.sh
- if: matrix.config.preset == 'mingwX64'
run: ${{ github.workspace }}/setup-shared-libs.bat
Expand Down

0 comments on commit ab556aa

Please sign in to comment.