Merge pull request #1104 from ipfs-force-community/chore/bump-v0.12.0… #681
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: damocles-worker-util | |
on: | |
pull_request: | |
branches: ["main", "release/**", "dev/coop/**"] | |
paths-ignore: ["*.md", "docs/**"] | |
push: | |
branches: ["main", "release/**", "dev/coop/**"] | |
paths-ignore: ["*.md", "docs/**"] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt update && sudo apt install --reinstall ocl-icd-opencl-dev libhwloc-dev -y | |
wget https://github.com/gnprice/toml-cli/releases/download/v0.2.3/toml-0.2.3-x86_64-linux.tar.gz && tar -xzf toml-0.2.3-x86_64-linux.tar.gz | |
sudo mv toml-0.2.3-x86_64-linux/toml /usr/local/bin | |
rm -rf toml-0.2.3-x86_64-linux.tar.gz toml-0.2.3-x86_64-linux | |
- name: read rust toolchain | |
id: read-rust-toolchain | |
run: | | |
echo "toolchain=$(toml get ./rust-toolchain.toml toolchain.channel --raw)" >> "$GITHUB_OUTPUT" | |
- name: Setup rust | |
run: rustup toolchain install ${{ steps.read-rust-toolchain.outputs.toolchain }} --profile minimal | |
- uses: Swatinem/rust-cache@v2 | |
continue-on-error: false | |
- name: test damocles-worker-util | |
run: make test-worker-util | |
- name: build damocles-worker-util | |
run: make build-worker-util | |
- name: check damocles-worker-util | |
run: make check-worker-util | |
- name: check git dirty | |
run: make check-git | |
- name: show bins | |
run: ls -lha ./dist/bin/ |