message: Improved cache, fixed target binaries in ci
diff: @@ -97,6 +97,7 @@ jobs:
  target = "aarch64-apple-darwin"
  EOF
  if: matrix.target == 'aarch64-apple-darwin'
  + - uses: Swatinem/rust-cache@v1
  - name: Configure cargo data directory
  # After this point, all cargo registry and crate data is stored in
  # $GITHUB_WORKSPACE/.cargo_home. This allows us to cache only the files
  @@ -104,34 +105,6 @@ jobs:
  # around a bug in the 'cache' action that causes directories outside of
  # the workspace dir to be saved/restored incorrectly.
  run: echo "CARGO_HOME=$(pwd)/.cargo_home" >> $GITHUB_ENV
  - - name: Cache
  - uses: actions/cache@master
  - with:
  - # Note: crates from the git repo always get rebuilt
  - # so we cache only those subdirectories of target/{debug|release} that
  - # contain the build output for crates that come from the registry.
  - path: |-
  - .cargo_home
  - target/*/.*
  - target/*/build
  - target/*/deps
  - key: v1-${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
  - restore-keys: |
  - v1-${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
  - # # Install sccache
  - # - uses: actions/cache@master
  - # with:
  - # path: ${{ runner.tool_cache }}/cargo-sccache
  - # key: cargo-sccache-bin-${{ env.CARGO_SCCACHE_VERSION }}
  - # - name: Install sccache
  - # run: |
  - # echo "${{ runner.tool_cache }}/cargo-sccache/bin" >> $GITHUB_PATH
  - # cargo install sccache --version ${{ env.CARGO_SCCACHE_VERSION }} --root ${{ runner.tool_cache }}/cargo-sccache
  - # - name: Start sccache
  - # run: |
  - # ${{ runner.tool_cache }}/cargo-sccache/bin/sccache --start-server
  - # ${{ runner.tool_cache }}/cargo-sccache/bin/sscache -s
  - # echo "RUSTC_WRAPPER=${{ runner.tool_cache }}/cargo-sccache/bin/sccache" >> $GITHUB_ENV
  - name: Install LLVM (Windows)
  if: matrix.os == 'windows-latest'
  shell: cmd
  @@ -190,7 +163,7 @@ jobs:
  cp target/${{matrix.target}}/release/libwasmer* target/release
  if [ -d "wapm-cli" ]; then
  mkdir -p wapm-cli/target/release
  - wapm-cli/target/${{matrix.target}}/release/wapm* wapm-cli/target/release
  + cp wapm-cli/target/${{matrix.target}}/release/wapm* wapm-cli/target/release
  fi
  if: matrix.target
  - name: Dist
  