Skip to content

Commit a419c42

Browse files
committed
CI: fix invalid name for artifact
Namely: ``` Error: The artifact name is not valid: archives-linux/amd64-x86_64. Contains the following character: Forward slash / Invalid characters include: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n, Backslash \, Forward slash / These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems. ```
1 parent a8ae260 commit a419c42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
# if: startsWith(github.ref, 'refs/tags/')
7676
uses: actions/upload-artifact@v4
7777
with:
78-
name: archives-${{ matrix.platform.name }}-${{ matrix.platform.target_arch }}
78+
name: archives-linux-${{ matrix.platform.target_arch }}
7979
path: new_release/*
8080

8181
mac-build:
@@ -84,7 +84,7 @@ jobs:
8484
matrix:
8585
config:
8686
- { os: "macos-13", arch: "x86_64" }
87-
- { os: "macos-14", arch: "xarm64" }
87+
- { os: "macos-14", arch: "arm64" }
8888
ocaml-compiler:
8989
- 4.14.x
9090
runs-on: ${{ matrix.config.os }}
@@ -112,7 +112,7 @@ jobs:
112112
mkdir -p new_release;
113113
export OUTPUT=$PWD/new_release;
114114
export TARGETOS=macos;
115-
export TARGETARCH={{ matrix.config.arch }};
115+
export TARGETARCH=${{ matrix.config.arch }};
116116
export VERSION=$GITHUB_REF_NAME;
117117
opam exec -- bash release/release.sh
118118

0 commit comments

Comments
 (0)