Skip to content

Commit

Permalink
add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashiidobe committed Nov 4, 2021
1 parent f9d9931 commit 480e1d2
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,14 @@ jobs:
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ matrix.job.target }}-${{ matrix.job.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install prerequisites
shell: bash
Expand Down Expand Up @@ -419,31 +427,6 @@ jobs:
*-pc-windows-*) EXE_suffix=".exe" ;;
esac;
# Figure out what strip tool to use if any
# STRIP="strip"
# case ${{ matrix.job.target }} in
# arm-unknown-linux-*) STRIP="arm-linux-gnueabihf-strip" ;;
# aarch64-pc-*) STRIP="" ;;
# aarch64-unknown-*) STRIP="" ;;
# armv7-unknown-*) STRIP="" ;;
# mips-unknown-*) STRIP="" ;;
# mips64-unknown-*) STRIP="" ;;
# mips64el-unknown-*) STRIP="" ;;
# mipsel-unknown-*) STRIP="" ;;
# powerpc-unknown-*) STRIP="" ;;
# powerpc64-unknown-*) STRIP="" ;;
# powerpc64le-unknown-*) STRIP="" ;;
# riscv64gc-unknown-*) STRIP="" ;;
# s390x-unknown-*) STRIP="" ;;
# x86_64-unknown-freebsd) STRIP="" ;;
# x86_64-unknown-illumos) STRIP="" ;;
# aarch64-linux-android) STRIP="" ;;
# arm-linux-androideabi) STRIP="" ;;
# armv5te-unknown-linux-gnueabi) STRIP="" ;;
# armv5te-unknown-linux-musleabi) STRIP="" ;;
# armv7-linux-androideabi) STRIP="" ;;
# esac;
# Setup paths
BIN_DIR="${{ env.CICD_INTERMEDIATES_DIR }}/stripped-release-bin/"
mkdir -p "${BIN_DIR}"
Expand All @@ -454,11 +437,6 @@ jobs:
# Copy the release build binary to the result location
cp "target/$TRIPLET_NAME/release/${BIN_NAME}" "${BIN_DIR}"
# Also strip if possible
# if [ -n "${STRIP}" ]; then
# "${STRIP}" "${BIN_PATH}"
# fi
# Let subsequent steps know where to find the (stripped) bin
echo ::set-output name=BIN_PATH::${BIN_PATH}
echo ::set-output name=BIN_NAME::${BIN_NAME}
Expand Down

0 comments on commit 480e1d2

Please sign in to comment.