@@ -221,14 +221,14 @@ jobs:
221221 sudo apt-get install -y -qq protobuf-compiler
222222
223223 - name : Install Rust
224- uses : actions-rust-lang/setup-rust-toolchain@v1
225- with :
226- toolchain : ${{ env.RUST_VERSION }}
227- target : x86_64-unknown-linux-gnu
228- rustflags : " "
224+ run : |
225+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
226+ . "$HOME/.cargo/env"
227+ rustup install ${{ env.RUST_VERSION }}
229228
230229 - name : Build Linux x86_64
231230 run : |
231+ . "$HOME/.cargo/env"
232232 cd ${{ env.RUST_PROJECT_DIR }}
233233 cargo rustc \
234234 --release \
@@ -243,43 +243,43 @@ jobs:
243243 path : dependencies/sdk-core/target/x86_64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}
244244 retention-days : 1
245245
246- # build-linux-arm:
247- # name: Build Linux ARM64
248- # runs-on: ubuntu-24.04-arm
249- # needs: setup
250- # steps:
251- # - name: Checkout repository
252- # uses: actions/checkout@v4
253- # with:
254- # submodules: recursive
255-
256- # - name: Install protoc
257- # run: |
258- # sudo apt-get update -qq
259- # sudo apt-get install -y -qq protobuf-compiler
260-
261- # - name: Install Rust
262- # uses: actions-rust-lang/setup-rust-toolchain@v1
263- # with:
264- # toolchain: ${{ env.RUST_VERSION }}
265- # target: aarch64-unknown-linux-gnu
266- # rustflags: ""
267-
268- # - name: Build Linux ARM64
269- # run: |
270- # cd ${{ env.RUST_PROJECT_DIR }}
271- # cargo rustc \
272- # --release \
273- # --target aarch64-unknown-linux-gnu \
274- # --features xz2-static \
275- # --crate-type=staticlib
276-
277- # - name: Upload Linux ARM64 artifacts
278- # uses: actions/upload-artifact@v4
279- # with:
280- # name: linux-arm-libraries
281- # path: dependencies/sdk-core/target/aarch64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}
282- # retention-days: 1
246+ build-linux-arm :
247+ name : Build Linux ARM64
248+ runs-on : ubuntu-24.04-arm
249+ needs : setup
250+ steps :
251+ - name : Checkout repository
252+ uses : actions/checkout@v4
253+ with :
254+ submodules : recursive
255+
256+ - name : Install protoc
257+ run : |
258+ sudo apt-get update -qq
259+ sudo apt-get install -y -qq protobuf-compiler
260+
261+ - name : Install Rust
262+ run : |
263+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
264+ . "$HOME/.cargo/env"
265+ rustup install ${{ env.RUST_VERSION }}
266+
267+ - name : Build Linux ARM64
268+ run : |
269+ . "$HOME/.cargo/env"
270+ cd ${{ env.RUST_PROJECT_DIR }}
271+ cargo rustc \
272+ --release \
273+ --target aarch64-unknown-linux-gnu \
274+ --features xz2-static \
275+ --crate-type=staticlib
276+
277+ - name : Upload Linux ARM64 artifacts
278+ uses : actions/upload-artifact@v4
279+ with :
280+ name : linux-arm-libraries
281+ path : dependencies/sdk-core/target/aarch64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}
282+ retention-days : 1
283283
284284 assemble-bundle :
285285 name : Assemble artifact bundle
@@ -355,8 +355,8 @@ jobs:
355355 "${{ env.ARTIFACT_BUNDLE_NAME }}/temporal/libTemporal-macos-arm64.a"
356356 cp "dependencies/sdk-core/target/x86_64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}" \
357357 "${{ env.ARTIFACT_BUNDLE_NAME }}/temporal/libTemporal-linux-x86_64.a"
358- # cp "dependencies/sdk-core/target/aarch64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}" \
359- # "${{ env.ARTIFACT_BUNDLE_NAME }}/temporal/libTemporal-linux-arm64.a"
358+ cp "dependencies/sdk-core/target/aarch64-unknown-linux-gnu/release/${{ env.TEMPORAL_BUILT_LIB_NAME }}" \
359+ "${{ env.ARTIFACT_BUNDLE_NAME }}/temporal/libTemporal-linux-arm64.a"
360360
361361 - name : Generate artifact bundle manifest
362362 run : |
0 commit comments