Skip to content

Commit

Permalink
ci: clean up CI
Browse files Browse the repository at this point in the history
CircleCI is only used for testing on ARM, hence removing all other job.
The package hasn't been packaged or published to github since 2020, no
one missed it, hence remove those jobs and scripts.
  • Loading branch information
vmx committed Sep 5, 2023
1 parent eee0b6f commit 27c34d8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 303 deletions.
208 changes: 0 additions & 208 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,5 @@
version: 2
jobs:
cargo_fetch:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- run:
name: Calculate dependencies
command: cargo generate-lockfile
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run: rustup install $(cat rust-toolchain)
- run: rustup default $(cat rust-toolchain)
- run: rustup component add rustfmt-preview
- run: rustup component add clippy-preview
- run: cargo update
- run: cargo fetch
- run: rustc +stable --version
- run: rustc +$(cat rust-toolchain) --version
- run: rustup install nightly-2022-04-24
- persist_to_workspace:
root: "."
paths:
- Cargo.lock
- save_cache:
key: cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
paths:
- /root/.cargo
- /root/.rustup
test:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Test (stable)
command: cargo test --verbose --frozen --all
no_output_timeout: 15m

test_release:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Test (stable) in release profile (pairing)
command: |
cargo test --verbose --release --frozen --all
cargo build --examples --release --frozen --all
test_nightly:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Test (pairing, multicore)
command: cargo test --verbose --frozen --all
no_output_timeout: 15m

- run:
name: Test (blst, multicore)
command: cargo test --no-default-features --features blst,multicore --verbose --frozen --all
no_output_timeout: 15m

- run:
name: Test (pairing)
command: cargo test --verbose --frozen --no-default-features --features pairing --all
no_output_timeout: 15m

- run:
name: Test (blst)
command: cargo test --no-default-features --features blst --verbose --frozen --all
no_output_timeout: 15m

- run:
name: Check benches (nightly)
command: cargo +nightly-2022-04-24 check --all-targets --frozen --workspace

test_arm:
machine:
image: ubuntu-2004:202101-01
Expand All @@ -119,117 +20,8 @@ jobs:
name: Run cargo test blst,multicore,blst-portable
command: cargo test --release --no-default-features --features blst,multicore,blst-portable

rustfmt:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Run cargo fmt
command: cargo fmt --all -- --check

clippy:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Run cargo clippy
command: cargo clippy --all

publish_linux_release:
docker:
- image: filecoin/rust:latest
working_directory: /mnt/crate
steps:
- checkout
- attach_workspace:
at: "."
- restore_cache:
keys:
- cargo-v4-{{ checksum "rust-toolchain" }}-{{ checksum "Cargo.toml" }}-{{ checksum "Cargo.lock" }}-{{ arch }}
- run:
name: Build (release)
command: cargo +$(cat rust-toolchain) build --release --verbose --frozen --all
- run:
name: update apt
command: apt-get update --fix-missing

- run:
name: Install jq
command: apt-get install jq -yqq
- run:
name: Run publish-release.sh
command: bash ./scripts/publish-release.sh

publish_darwin_release:
macos:
xcode: "13.4.1"
working_directory: ~/crate
steps:
- run:
name: Configure environment variables
command: |
echo 'export PATH="${HOME}/.cargo/bin:${HOME}/.bin:${PATH}"' >> $BASH_ENV
echo 'export CIRCLE_ARTIFACTS="/tmp"' >> $BASH_ENV
- checkout
- run:
name: Install Rust
command: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
- run: rustup install $(cat rust-toolchain)
- run: rustup default $(cat rust-toolchain)
- run: cargo update
- run: cargo fetch
- run:
name: Build (release)
command: cargo +$(cat rust-toolchain) build --release --verbose --frozen --all
- run:
name: Install jq
command: |
mkdir $HOME/.bin
curl --location https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64 --output $HOME/.bin/jq
chmod +x $HOME/.bin/jq
- run:
name: Run publish-release.sh
command: bash ./scripts/publish-release.sh

workflows:
version: 2
test_all:
jobs:
- cargo_fetch
- rustfmt:
requires:
- cargo_fetch
- clippy:
requires:
- cargo_fetch
- test_release:
requires:
- cargo_fetch
- test:
requires:
- cargo_fetch
- test_nightly:
requires:
- cargo_fetch
- test_arm
- publish_linux_release:
requires:
- cargo_fetch
- publish_darwin_release:
requires:
- cargo_fetch
27 changes: 0 additions & 27 deletions scripts/package-release.sh

This file was deleted.

68 changes: 0 additions & 68 deletions scripts/publish-release.sh

This file was deleted.

0 comments on commit 27c34d8

Please sign in to comment.