72
72
build-macos :
73
73
timeout-minutes : 30
74
74
runs-on : parity-macos
75
- strategy :
76
- fail-fast : true
77
- matrix :
78
- target : [aarch64-apple-darwin, x86_64-apple-darwin]
79
75
steps :
80
76
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
81
77
- name : Set rust version from env file
93
89
with :
94
90
cache : false
95
91
toolchain : ${{ env.RUST_VERSION }}
96
- target : wasm32-unknown-unknown, ${{ matrix.target }}
92
+ target : wasm32-unknown-unknown, aarch64-apple-darwin, x86_64-apple-darwin
97
93
components : cargo, clippy, rust-docs, rust-src, rustfmt, rustc, rust-std
98
94
- name : cargo info
99
95
run : |
@@ -108,13 +104,12 @@ jobs:
108
104
cache-all-crates : true
109
105
- name : Run cargo build
110
106
run : |
111
- cargo build --release --target ${{ matrix.target }}
112
- # cargo build --release --target aarch64-apple-darwin
113
- # cargo build --release --target x86_64-apple-darwin
114
- # mkdir -p ./artifacts/substrate-contracts-node-mac/
115
- # lipo ./target/x86_64-apple-darwin/release/substrate-contracts-node \
116
- # ./target/aarch64-apple-darwin/release/substrate-contracts-node \
117
- # -create -output ./artifacts/substrate-contracts-node-mac/substrate-contracts-node
107
+ cargo build --release --target aarch64-apple-darwin
108
+ cargo build --release --target x86_64-apple-darwin
109
+ mkdir -p ./artifacts/substrate-contracts-node-mac/
110
+ lipo ./target/x86_64-apple-darwin/release/substrate-contracts-node \
111
+ ./target/aarch64-apple-darwin/release/substrate-contracts-node \
112
+ -create -output ./artifacts/substrate-contracts-node-mac/substrate-contracts-node
118
113
- name : Upload artifacts
119
114
120
115
with :
0 commit comments