File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -40,13 +40,15 @@ jobs:
40
40
41
41
build-and-release :
42
42
needs : prepare
43
+ timeout-minutes : 60
43
44
runs-on : ${{ matrix.os }}
44
45
45
46
strategy :
46
47
matrix :
47
48
os :
49
+ # self-hosted ARM macOS runner
50
+ - self-hosted
48
51
- ubuntu-latest
49
- - macos-latest
50
52
51
53
steps :
52
54
- name : Free Disk Space (Ubuntu)
Original file line number Diff line number Diff line change @@ -5,5 +5,17 @@ set -euo pipefail
5
5
source config.sh
6
6
7
7
TOOLCHAIN_DIR=rust/build/$TOOLCHAIN_HOST_TRIPLET /stage2
8
- cp -n rust/build/$TOOLCHAIN_HOST_TRIPLET /stage2-tools-bin/* $TOOLCHAIN_DIR /bin
8
+ TOOLS_BIN_DIR=rust/build/$TOOLCHAIN_HOST_TRIPLET /stage2-tools-bin
9
+
10
+ # Function to copy files, ignoring errors if destination exists
11
+ copy_ignore_existing () {
12
+ cp " $1 " " $2 " 2> /dev/null || true
13
+ }
14
+
15
+ # Copy files from stage2-tools-bin to stage2/bin, ignoring if they already exist
16
+ for file in " $TOOLS_BIN_DIR " /* ; do
17
+ copy_ignore_existing " $file " " $TOOLCHAIN_DIR /bin/"
18
+ done
19
+
20
+ # Create tarball
9
21
tar --exclude lib/rustlib/src --exclude lib/rustlib/rustc-src -hczvf $ARTIFACT_NAME .tar.gz -C $TOOLCHAIN_DIR .
You can’t perform that action at this time.
0 commit comments