Skip to content

Commit aa1ac04

Browse files
committed
make macos command work like all the others
1 parent 7d69810 commit aa1ac04

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build-workflow

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ case $1 in
142142
build_armv7
143143
create_linux_release_artifact armv7-linux
144144
;;
145+
"macos")
146+
build_macos
147+
create_macos_artifact
148+
;;
145149
"local-release")
146150
create_release
147151
;;

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,20 @@ jobs:
8686
~/.cargo/git
8787
target
8888
key: ${{ runner.os }}-macos-1-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('src/**.rs') }}
89-
- uses: actions-rust-lang/setup-rust-toolchain@v1
90-
- name: Build release
91-
run: .github/workflows/build-workflow macos
9289
- name: Import Code-Signing Certificates
9390
uses: Apple-Actions/import-codesign-certs@v2
9491
with:
9592
# The certificates in a PKCS12 file encoded as a base64 string
9693
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
9794
# The password used to import the PKCS12 file.
9895
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
99-
- name: Sign and notarize the macOS binary
96+
- uses: actions-rust-lang/setup-rust-toolchain@v1
97+
- name: Build release
10098
env:
10199
AC_PROVIDER: ${{ secrets.AC_PROVIDER }}
102100
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
103101
AC_USERNAME: ${{ secrets.AC_USERNAME }}
104-
run: |
105-
.github/workflows/build-workflow notarize-macos
102+
run: .github/workflows/build-workflow macos
106103
- name: Upload compiled artifact
107104
uses: actions/upload-artifact@v4
108105
with:

0 commit comments

Comments
 (0)