Skip to content

edit todo

edit todo #52

Workflow file for this run

name: Macos Builds
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as it uses the current rustc version as its cache key
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- name: Cache .cargo/bin
uses: actions/cache@v3
env:
cache-name: cache-cargo-dir
with:
path: /Users/runner/.cargo/bin/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/cargo.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install sccache
run: if [ -e ~/.cargo/bin/sccache ] ; then echo "Sccache is already installed"; else cargo install sccache -f; fi
- name: Install zld
run: if [ -e /usr/local/bin/zld ]; then brew link zld; else brew install michaeleisel/zld/zld; fi
- name: Install fleet
run: cargo install --path . fleet-rs -f
- name: Run app using fleet
run: fleet build -- --bin fleet
- name: Install cargo bloat
run: if [ -e ~/.cargo/bin/cargo-bloat ] ; then echo "Bloat is already installed"; else cargo install cargo-bloat -f; fi
- name: Run bloat analysis
run: fleet bloat