Skip to content

Commit

Permalink
Attempt at fixing shasum error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziothh committed Nov 13, 2023
1 parent 20b00a3 commit 79b2362
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ jobs:
matrix:
build:
- linux gnu x64
- linux gnu aarch64
# - linux gnu aarch64
- macos x64
- macos aarch64
# - macos aarch64
include:
- build: linux gnu x64
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
- build: linux gnu aarch64
os: ubuntu-latest
rust: stable
target: aarch64-unknown-linux-gnu
# - build: linux gnu aarch64
# os: ubuntu-latest
# rust: stable
# target: aarch64-unknown-linux-gnu
- build: macos x64
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: macos aarch64
os: macos-latest
rust: stable
target: aarch64-apple-darwin
# - build: macos aarch64
# os: macos-latest
# rust: stable
# target: aarch64-apple-darwin
steps:
- name: Echo env variables
run: |
Expand Down Expand Up @@ -99,11 +99,11 @@ jobs:
id: make-checksum
working-directory: ./target/${{ matrix.target }}/release
run: |
name="$LIB_NAME-${{ matrix.target }}.sha256sum"
name="$BIN_CRATE_NAME-${{ matrix.target }}.sha256sum"
if [[ "$RUNNER_OS" != "macOS" ]]; then
sha256sum "$LIB_NAME" > "${name}"
sha256sum "$BIN_CRATE_NAME" > "${name}"
else
shasum -a 256 "$LIB_NAME" > "${name}"
shasum -a 256 "$BIN_CRATE_NAME" > "${name}"
fi
echo "::set-output name=name::${name}"
Expand All @@ -112,7 +112,7 @@ jobs:
working-directory: ./target/${{ matrix.target }}/release
run: |
name="$LIB_NAME-${{ matrix.target }}.tar.gz"
tar cvzf "${name}" "$LIB_NAME"
tar cvzf "${name}" "$BIN_CRATE_NAME"
echo "::set-output name=name::${name}"
- name: Upload release archive
Expand Down

0 comments on commit 79b2362

Please sign in to comment.