File tree 2 files changed +23
-5
lines changed 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,10 @@ on: [pull_request]
4
4
jobs :
5
5
shallow :
6
6
name : Spell Check with Typos
7
- runs-on : ubuntu-latest
7
+ strategy :
8
+ matrix :
9
+ os : [ubuntu-latest, macos-latest]
10
+ runs-on : ${{ matrix.os }}
8
11
steps :
9
12
- name : Checkout Actions Repository
10
13
uses : actions/checkout@v4
26
29
27
30
deep :
28
31
name : Spell Check with Type w/History
29
- runs-on : ubuntu-latest
32
+ strategy :
33
+ matrix :
34
+ os : [ubuntu-latest, macos-latest]
35
+ runs-on : ${{ matrix.os }}
30
36
steps :
31
37
- name : Checkout Actions Repository
32
38
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -19,13 +19,25 @@ if [[ -z $(ls ${TARGET} 2>/dev/null) ]]; then
19
19
exit 1
20
20
fi
21
21
22
+
22
23
if [[ ! -x ${COMMAND} ]]; then
23
24
VERSION=1.22.7
25
+ if [[ " $( uname -m) " == " arm64" ]]; then
26
+ ARCH=" aarch64"
27
+ else
28
+ ARCH=" x86_64"
29
+ fi
30
+ if [[ " $( uname -s) " == " Darwin" ]]; then
31
+ TARGET_FILE=" ${ARCH} -apple-darwin"
32
+ else
33
+ TARGET_FILE=" ${ARCH} -unknown-linux-musl"
34
+ fi
35
+ FILE_NAME=" typos-v${VERSION} -${TARGET_FILE} .tar.gz"
24
36
log " Downloading 'typos' v${VERSION} "
25
- wget --progress=dot:mega " https://github.com/crate-ci/typos/releases/download/v${VERSION} /typos-v ${VERSION} -x86_64-unknown-linux-musl.tar.gz "
37
+ wget --progress=dot:mega " https://github.com/crate-ci/typos/releases/download/v${VERSION} /${FILE_NAME} "
26
38
mkdir -p ${_INSTALL_DIR}
27
- tar -xzvf typos-v ${VERSION} -x86_64-unknown-linux-musl.tar.gz -C ${_INSTALL_DIR} ./${CMD_NAME}
28
- rm typos-v ${VERSION} -x86_64-unknown-linux-musl.tar.gz
39
+ tar -xzvf " ${FILE_NAME} " -C ${_INSTALL_DIR} ./${CMD_NAME}
40
+ rm " ${FILE_NAME} "
29
41
fi
30
42
log " jq: $( jq --version) "
31
43
You can’t perform that action at this time.
0 commit comments