Skip to content

Commit

Permalink
Update release-test-macos.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
panekj committed Jun 4, 2024
1 parent d863307 commit c339c7b
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/release-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,21 @@ jobs:
strategy:
matrix:
include:
# - rust-arch: aarch64
# darwin-arch: arm64
# runs-on: macos-14

# - rust-arch: x86_64
# darwin-arch: x86_64
# runs-on: macos-13

- rust-arch: aarch64
darwin-arch: arm64
runs-on: macos-14
darwin-arch: x86_64
runs-on: macos-12

- rust-arch: x86_64
- rust-arch: aarch64
darwin-arch: x86_64
runs-on: macos-13
runs-on: macos-11
env:
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}

Expand All @@ -35,12 +43,12 @@ jobs:
APP_NAME: Lapce-macos-${{ matrix.rust-arch }}.app
DMG_NAME: lapce-macos-${{ matrix.rust-arch }}.dmg

# CARGO_BUILD_TARGET: ${{ matrix.rust-arch }}-apple-darwin
CARGO_BUILD_TARGET: ${{ matrix.rust-arch }}-apple-darwin
steps:
- uses: actions/checkout@v4

- name: Update rust
run: rustup update
run: rustup update && rustup target add ${{ env.CARGO_BUILD_TARGET }}

- name: Import Certificate
uses: Apple-Actions/import-codesign-certs@v3
Expand All @@ -51,21 +59,17 @@ jobs:
- name: Fetch dependencies
run: cargo fetch --locked

- name: arm64
if: matrix.rust-arch == 'aarch64'
run: echo 'MACOSX_DEPLOYMENT_TARGET=11.0' >> $GITHUB_ENV

- name: Make DMG
run: make dmg

- name: Rename
run: |
cp ./target/release-lto/macos/Lapce.dmg ./target/release-lto/macos/${{ env.DMG_NAME }}
cp ./target/${{ env.CARGO_BUILD_TARGET }}/release-lto/macos/Lapce.dmg ./target/${{ env.CARGO_BUILD_TARGET }}/release-lto/macos/${{ env.DMG_NAME }}
- name: Notarize Release Build
uses: lando/notarize-action@v2
with:
product-path: "./target/release-lto/macos/${{ env.DMG_NAME }}"
product-path: "./target/${{ env.CARGO_BUILD_TARGET }}/release-lto/macos/${{ env.DMG_NAME }}"
appstore-connect-username: ${{ secrets.NOTARIZE_USERNAME }}
appstore-connect-password: ${{ secrets.NOTARIZE_PASSWORD }}
appstore-connect-team-id: CYSGAZFR8D
Expand All @@ -74,11 +78,11 @@ jobs:
- name: "Staple Release Build"
uses: lapce/xcode-staple@062485d6eeafe841c18a412f012e80f49e23c517
with:
product-path: "./target/release-lto/macos/${{ env.DMG_NAME }}"
product-path: "./target/${{ env.CARGO_BUILD_TARGET }}/release-lto/macos/${{ env.DMG_NAME }}"

- uses: actions/upload-artifact@v4
with:
name: lapce-macos-${{ matrix.rust-arch }}
name: lapce-macos-${{ matrix.runs-on }}
path: |
./target/release-lto/macos/${{ env.DMG_NAME }}
./target/${{ env.CARGO_BUILD_TARGET }}/release-lto/macos/${{ env.DMG_NAME }}
retention-days: 1

0 comments on commit c339c7b

Please sign in to comment.