diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 95e3fb34445ee0..00000000000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,16 +0,0 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: -- package-ecosystem: cargo - directory: "/" - schedule: - interval: daily - time: "01:00" - timezone: America/Los_Angeles - #labels: - # - "automerge" - open-pull-requests-limit: 6 diff --git a/.github/label-actions.yml b/.github/label-actions.yml deleted file mode 100644 index 029ec96a2dc9fc..00000000000000 --- a/.github/label-actions.yml +++ /dev/null @@ -1,27 +0,0 @@ -question: - issues: - # Post a comment, `{issue-author}` is an optional placeholder - comment: > - Hi @{issue-author}, - - - Thanks for your question! - - - We want to make sure to keep signal strong in the GitHub issue tracker – to make sure - that it remains the best place to track issues that affect the development of Solana itself. - - - Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that - this is a bug with Solana itself, please post your question to the Solana Stack Exchange - using this link: https://solana.stackexchange.com/questions/ask - - - --- - - _This - [automated message](https://github.com/solana-labs/solana/blob/master/.github/label-actions.yml) - is a result of having added the ‘question’ tag_. - - # Close the issue - close: true diff --git a/.github/workflows/autolock_bot_PR.txt b/.github/workflows/autolock_bot_PR.txt deleted file mode 100644 index 99ad85b02c2917..00000000000000 --- a/.github/workflows/autolock_bot_PR.txt +++ /dev/null @@ -1,37 +0,0 @@ -name: 'Autolock RitBot for for PR' - -on: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - -permissions: - issues: write - pull-requests: write - -concurrency: - group: lock - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v3 - with: - - github-token: ${{ github.token }} - pr-inactive-days: '14' - exclude-pr-created-before: '' - exclude-pr-created-after: '' - exclude-pr-created-between: '' - exclude-pr-closed-before: '' - exclude-pr-closed-after: '' - exclude-pr-closed-between: '' - include-any-pr-labels: 'automerge' - include-all-pr-labels: '' - exclude-any-pr-labels: '' - add-pr-labels: 'locked PR' - remove-pr-labels: '' - pr-comment: 'This PR has been automatically locked since there has not been any activity in past 14 days after it was merged.' - pr-lock-reason: 'resolved' - log-output: true diff --git a/.github/workflows/autolock_bot_closed_issue.txt b/.github/workflows/autolock_bot_closed_issue.txt deleted file mode 100644 index 3dfa6bb2f1d4de..00000000000000 --- a/.github/workflows/autolock_bot_closed_issue.txt +++ /dev/null @@ -1,38 +0,0 @@ -name: 'Autolock NaviBot for closed issue' - -on: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - -permissions: - issues: write - pull-requests: write - -concurrency: - group: lock - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v3 - with: - - github-token: ${{ github.token }} - issue-inactive-days: '7' - exclude-issue-created-before: '' - exclude-issue-created-after: '' - exclude-issue-created-between: '' - exclude-issue-closed-before: '' - exclude-issue-closed-after: '' - exclude-issue-closed-between: '' - include-any-issue-labels: '' - include-all-issue-labels: '' - exclude-any-issue-labels: '' - add-issue-labels: 'locked issue' - remove-issue-labels: '' - issue-comment: 'This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs.' - issue-lock-reason: 'resolved' - process-only: 'issues' - log-output: true diff --git a/.github/workflows/client-targets.yml b/.github/workflows/client-targets.yml deleted file mode 100644 index 3b3d1779a1be29..00000000000000 --- a/.github/workflows/client-targets.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: client_targets - -on: - push: - branches: - - master - pull_request: - branches: - - master - paths: - - "client/**" - - "sdk/**" - - ".github/workflows/client-targets.yml" - - "ci/rust-version.sh" - -env: - CARGO_TERM_COLOR: always - -jobs: - android: - strategy: - matrix: - os: - - ubuntu-20.04 - target: - - x86_64-linux-android - - aarch64-linux-android - - i686-linux-android - - armv7-linux-androideabi - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - - run: cargo install cargo-ndk@2.12.2 - - - name: Setup Rust - run: | - source ci/rust-version.sh stable - rustup target add --toolchain "$rust_stable" ${{ matrix.target }} - - - name: Stable build - run: ./cargo stable ndk --target ${{ matrix.target }} build -p solana-client - - ios: - strategy: - matrix: - os: - - macos-11 - target: - - aarch64-apple-ios - - x86_64-apple-ios - - aarch64-apple-darwin - - x86_64-apple-darwin - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - - name: Setup Rust - run: | - source ci/rust-version.sh stable - rustup target add --toolchain "$rust_stable" ${{ matrix.target }} - - - name: Stable build - run: ./cargo stable build --target ${{ matrix.target }} -p solana-client - - error_reporting: - needs: - - android - - ios - if: failure() && github.event_name == 'push' - uses: ./.github/workflows/error-reporting.yml - secrets: - WEBHOOK: ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }} diff --git a/.github/workflows/crate-check.yml b/.github/workflows/crate-check.yml deleted file mode 100644 index a47e7cde5fb217..00000000000000 --- a/.github/workflows/crate-check.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: crate-check - -on: - push: - branches: - - master - pull_request: - branches: - - master - paths: - - "**/Cargo.toml" - - ".github/workflows/crate-check.yml" - -jobs: - check: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get commit range (push) - if: ${{ github.event_name == 'push' }} - run: | - echo "COMMIT_RANGE=${{ github.event.before }}..$GITHUB_SHA" >> $GITHUB_ENV - - - name: Get commit range (pull_request) - if: ${{ github.event_name == 'pull_request' }} - run: | - echo "COMMIT_RANGE=${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV - - - name: Setup Rust - shell: bash - run: | - source ci/rust-version.sh stable - rustup default $rust_stable - - - name: Install toml-cli - shell: bash - run: | - cargo install toml-cli - - - run: | - ci/check-crates.sh - - error_reporting: - needs: - - check - if: failure() && github.event_name == 'push' - uses: ./.github/workflows/error-reporting.yml - secrets: - WEBHOOK: ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index fb2096bd33b185..00000000000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: docs - -on: - push: - branches: - - master - - v[0-9]+.[0-9]+ - tags: - - v[0-9]+.[0-9]+.[0-9]+ - pull_request: - branches: - - master - - v[0-9]+.[0-9]+ - -jobs: - check: - outputs: - continue: ${{ steps.check.outputs.need_to_build }} - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Get commit range (push) - if: ${{ github.event_name == 'push' }} - run: | - echo "COMMIT_RANGE=${{ github.event.before }}..$GITHUB_SHA" >> $GITHUB_ENV - - - name: Get commit range (pull_request) - if: ${{ github.event_name == 'pull_request' }} - run: | - echo "COMMIT_RANGE=${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV - - - name: Get file status - run: | - set +e - git diff --name-only $COMMIT_RANGE | grep \ - -e '.github/workflows/docs.yml' \ - -e 'docs/**' - echo "FILE_CHANGED=$?" >> $GITHUB_ENV - - - name: Check - id: check - shell: bash - run: | - source ci/env.sh - eval "$(ci/channel-info.sh)" - TAG=$CI_TAG - - echo "TAG: $TAG" - echo "CHANNEL: $CHANNEL" - echo "FILE_CHANGED: $FILE_CHANGED" - - echo need_to_build="$( - if [ "$TAG" != '' ] - then - echo 1 - elif [ $FILE_CHANGED = 0 ] && ( [ "$CHANNEL" = "beta" ] || [ "$CHANNEL" = "edge" ] ) - then - echo 1 - else - echo 0 - fi - )" >> $GITHUB_OUTPUT - - build_and_deploy: - needs: - - check - if: > - github.repository == 'solana-labs/solana' && - needs.check.outputs.continue == 1 - # the name is used by .mergify.yml as well - name: build & deploy docs - runs-on: ubuntu-20.04 - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Build - working-directory: docs - run: | - npm install - ./build.sh - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - VERCEL_SCOPE: ${{ secrets.VERCEL_SCOPE }} - - error_reporting: - needs: - - check - - build_and_deploy - if: failure() && github.event_name == 'push' - uses: ./.github/workflows/error-reporting.yml - secrets: - WEBHOOK: ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }} diff --git a/.github/workflows/error-reporting.yml b/.github/workflows/error-reporting.yml deleted file mode 100644 index 4a5c6561987a82..00000000000000 --- a/.github/workflows/error-reporting.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: error-reporting - -on: - workflow_call: - secrets: - WEBHOOK: - required: true - -jobs: - slack: - runs-on: ubuntu-20.04 - steps: - - env: - COMMIT_MESSAGE: ${{ github.event.head_commit.message }} - COMMIT_AUTHOR_NAME: ${{ github.event.head_commit.author.name }} - run: | - curl -H "Content-Type: application/json" \ - -X POST ${{ secrets.WEBHOOK }} \ - -d '{ - "attachments": [ - { - "color": "#AC514C", - "text": - "*${{ github.repository }} (${{ github.workflow }})*\n'"$COMMIT_MESSAGE"' - _'"$COMMIT_AUTHOR_NAME"'_\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Build>", - } - ] - }' diff --git a/.github/workflows/increment-cargo-version-on-release.yml b/.github/workflows/increment-cargo-version-on-release.yml deleted file mode 100644 index 5592d76ca52dd1..00000000000000 --- a/.github/workflows/increment-cargo-version-on-release.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: increment-cargo-version - -on: - release: - types: [published] - -jobs: - check_compilation: - name: Increment cargo version - runs-on: ubuntu-latest - steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - # This script confirms two assumptions: - # 1) Tag should be branch. - # 2) Tag should match the crate version numbers in the manifest files (which get incremented by the next step) - - name: Confirm tag, branch, and cargo version numbers - run: scripts/confirm-cargo-version-numbers-before-bump.sh ${{ github.event.release.target_commitish }} ${{ github.event.release.tag_name }} - - - name: Update Patch Version Numbers - run: | - OUTPUT=$(scripts/increment-cargo-version.sh patch) - SOLANA_NEW_VERSION=$(sed -E 's/.* -> //' <<< $OUTPUT) - echo "SOLANA_NEW_VERSION=$SOLANA_NEW_VERSION" - echo "SOLANA_NEW_VERSION=$SOLANA_NEW_VERSION" >> $GITHUB_ENV - - - name: Cargo Tree - run: ./scripts/cargo-for-all-lock-files.sh tree - - - name: Create Pull Request - uses: peter-evans/create-pull-request@v4 - with: - commit-message: Bump Version to ${{ env.SOLANA_NEW_VERSION }} - title: Bump Version to ${{ env.SOLANA_NEW_VERSION }} - body: PR opened by Github Action - branch: update-version-${{ env.SOLANA_NEW_VERSION }} - base: ${{ github.event.release.target_commitish }} - labels: automerge diff --git a/.github/workflows/label-actions.yml b/.github/workflows/label-actions.yml deleted file mode 100644 index 218876135a1974..00000000000000 --- a/.github/workflows/label-actions.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: "Issue Label Actions" - -on: - issues: - types: [labeled, unlabeled] - -permissions: - contents: read - issues: write - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/label-actions@v2 diff --git a/.github/workflows/manage-stale-issues-and-prs.yml b/.github/workflows/manage-stale-issues-and-prs.yml deleted file mode 100644 index ec368143d13114..00000000000000 --- a/.github/workflows/manage-stale-issues-and-prs.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Manage stale issues and PRs" -on: - # Chosen to be just before London wakes up and way past San Francisco's bedtime. - schedule: - - cron: "0 8 * * 1-5" # This is in UTC. - # Do a dry-run (debug-only: true) whenever this workflow itself is changed. - pull_request: - paths: - - .github/workflows/manage-stale-issues-and-prs.yml - types: - - opened - - synchronize - -permissions: - issues: write - pull-requests: write - -jobs: - stale: - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v6 - with: - ascending: true # Spend API operations budget on older, more-likely-to-get-closed issues first - close-issue-message: "" # Leave no comment when closing - close-pr-message: "" # Leave no comment when closing - days-before-issue-stale: 365 - days-before-pr-stale: 14 - days-before-close: 7 - debug-only: ${{ github.event_name == 'pull_request' }} # Dry-run when true. - exempt-all-milestones: true # Milestones can sometimes last a month, so exempt issues attached to a milestone. - exempt-issue-labels: blocked,do-not-close,feature-gate,security - exempt-pr-labels: blocked,do-not-close,feature-gate,security - # No actual changes get made in debug-only mode, so we can raise the operations ceiling. - operations-per-run: ${{ github.event_name == 'pull_request' && 1000 || 900}} - stale-issue-label: stale - stale-issue-message: "" # Leave no comment when marking as stale - stale-pr-label: stale - stale-pr-message: "" # Leave no comment when marking as stale diff --git a/.github/workflows/release-artifacts-auto.yml b/.github/workflows/release-artifacts-auto.yml deleted file mode 100644 index a8309cdffc8a72..00000000000000 --- a/.github/workflows/release-artifacts-auto.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: release-artifacts-auto - -on: - push: - branches: - - master - - v[0-9]+.[0-9]+ - tags: - - v[0-9]+.[0-9]+.[0-9]+ - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - release-artifacts: - if: github.repository == 'solana-labs/solana' - uses: ./.github/workflows/release-artifacts.yml - with: - commit: ${{ github.sha }} - secrets: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - - error_reporting: - needs: - - release-artifacts - if: failure() && github.event_name == 'push' - uses: ./.github/workflows/error-reporting.yml - secrets: - WEBHOOK: ${{ secrets.SLACK_ERROR_REPORTING_WEBHOOK }} diff --git a/.github/workflows/release-artifacts-manually.yml b/.github/workflows/release-artifacts-manually.yml deleted file mode 100644 index 35de72922c32c8..00000000000000 --- a/.github/workflows/release-artifacts-manually.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: release-artifacts-manually - -on: - workflow_dispatch: - inputs: - commit: - type: string - required: true - description: commit - -jobs: - release-artifacts: - uses: ./.github/workflows/release-artifacts.yml - with: - commit: ${{ github.event.inputs.commit }} - secrets: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml deleted file mode 100644 index b8af200c1de6ac..00000000000000 --- a/.github/workflows/release-artifacts.yml +++ /dev/null @@ -1,115 +0,0 @@ -name: release-artifacts - -on: - workflow_call: - inputs: - commit: - required: false - type: string - secrets: - AWS_ACCESS_KEY_ID: - required: true - AWS_SECRET_ACCESS_KEY: - required: true - AWS_S3_BUCKET: - required: true - -jobs: - windows-build: - runs-on: windows-2022 - outputs: - tag: ${{ steps.build.outputs.tag }} - channel: ${{ steps.build.outputs.channel }} - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - ref: master - fetch-depth: 0 - - - name: Setup Rust - shell: bash - run: | - source ci/rust-version.sh stable - - # copy the newest version env.sh before switching version. - - name: Copy Env Script - shell: bash - run: | - cp -r ci/env.sh /tmp/env.sh - - - name: Switch Version - if: ${{ inputs.commit }} - run: | - git checkout ${{ inputs.commit }} - - - name: Build - id: build - shell: bash - run: | - export OPENSSL_DIR="C:\Program Files\OpenSSL" - choco install protoc - export PROTOC="C:\ProgramData\chocolatey\lib\protoc\tools\bin\protoc.exe" - source /tmp/env.sh - echo "tag=$CI_TAG" >> $GITHUB_OUTPUT - eval "$(ci/channel-info.sh)" - echo "channel=$CHANNEL" >> $GITHUB_OUTPUT - ci/publish-tarball.sh - - - name: Prepare Upload Files - if: ${{ steps.build.outputs.channel != '' || steps.build.outputs.tag != '' }} - shell: bash - run: | - FOLDER_NAME=${{ steps.build.outputs.tag || steps.build.outputs.channel }} - mkdir -p "github-action-s3-upload/$FOLDER_NAME" - cp -v "solana-release-x86_64-pc-windows-msvc.tar.bz2" "github-action-s3-upload/$FOLDER_NAME/" - cp -v "solana-release-x86_64-pc-windows-msvc.yml" "github-action-s3-upload/$FOLDER_NAME/" - cp -v "solana-install-init-x86_64-pc-windows-msvc"* "github-action-s3-upload/$FOLDER_NAME" - - - name: Upload Artifacts - if: ${{ steps.build.outputs.channel != '' || steps.build.outputs.tag != '' }} - uses: actions/upload-artifact@v3 - with: - name: windows-artifact - path: github-action-s3-upload/ - - windows-s3-upload: - if: ${{ needs.windows-build.outputs.channel != '' || needs.windows-build.outputs.tag != '' }} - needs: [windows-build] - runs-on: ubuntu-20.04 - steps: - - name: Download - uses: actions/download-artifact@v3 - with: - name: windows-artifact - path: ./github-action-s3-upload - - - name: Upload - uses: jakejarvis/s3-sync-action@master - with: - args: --acl public-read --follow-symlinks - env: - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} - AWS_REGION: "us-west-1" - SOURCE_DIR: "github-action-s3-upload" - - windows-gh-release: - if: ${{ needs.windows-build.outputs.tag != '' }} - needs: [windows-build] - runs-on: ubuntu-20.04 - steps: - - name: Download - uses: actions/download-artifact@v3 - with: - name: windows-artifact - path: ./github-action-s3-upload - - - name: Release - uses: softprops/action-gh-release@v1 - with: - tag_name: ${{ needs.windows-build.outputs.tag }} - draft: true - files: | - github-action-s3-upload/${{ needs.windows-build.outputs.tag }}/* diff --git a/.github/workflows/rustdoc-preview.yml b/.github/workflows/rustdoc-preview.yml new file mode 100644 index 00000000000000..54c8234d8758b4 --- /dev/null +++ b/.github/workflows/rustdoc-preview.yml @@ -0,0 +1,31 @@ +name: workflow-rustdoc-preview + +concurrency: preview-${{ github.ref }} +on: + pull_request: + types: + - opened + - reopened + - synchronize +env: + CARGO_TERM_COLOR: always + RUSTDOCFLAGS: --enable-index-page -Z unstable-options + +jobs: + job-rustdoc-preview: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: step-rustup + uses: dtolnay/rust-toolchain@nightly + - name: step-apt + run: sudo apt install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler + - name: step-cargo + run: cargo doc --no-deps --document-private-items --workspace + - name: step-git + uses: rossjrw/pr-preview-action@v1.4.0 + with: + source-dir: ./target/doc/ + deploy-repository: ryoqun/solana-rustdoc-preview + umbrella-dir: . + token: ${{ secrets.RUSTDOC_PREVIEW_REPO_TOKEN }} diff --git a/.github/workflows/solana-action.yml.txt b/.github/workflows/solana-action.yml.txt deleted file mode 100644 index 62c4c4864ffffd..00000000000000 --- a/.github/workflows/solana-action.yml.txt +++ /dev/null @@ -1,184 +0,0 @@ -name : minimal - -on: - push: - branches: [master] - pull_request: - branches: [master] - -jobs: - macos-artifacts: - needs: [Export_Github_Repositories] - strategy: - fail-fast: false - runs-on: macos-latest - if : ${{ github.event_name == 'api' && 'cron' || 'push' || startsWith(github.ref, 'refs/tags/v')}} - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Setup | Rust - uses: ATiltedTree/setup-rust@v1 - with: - rust-version: stable - - name: release artifact - run: | - source ci/rust-version.sh - brew install coreutils - export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" - greadlink -f . - source ci/env.sh - rustup set profile default - ci/publish-tarball.sh - shell: bash - - - name: Cache modules - uses: actions/cache@master - id: yarn-cache - with: - path: node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: ${{ runner.os }}-yarn- - - -# - To stop from uploading on the production -# - uses: ochanje210/simple-s3-upload-action@master -# with: -# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} -# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}} -# AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} -# SOURCE_DIR: 'travis-s3-upload1' -# DEST_DIR: 'giitsol' - -# - uses: ochanje210/simple-s3-upload-action@master -# with: -# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }} -# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}} -# AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} -# SOURCE_DIR: './docs/' -# DEST_DIR: 'giitsol' - - - windows-artifact: - needs: [Export_Github_Repositories] - strategy: - fail-fast: false - runs-on: windows-latest - if : ${{ github.event_name == 'api' && 'cron' || 'push' || startsWith(github.ref, 'refs/tags/v')}} - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - name: Setup | Rust - uses: ATiltedTree/setup-rust@v1 - with: - rust-version: stable - release-artifact: - needs: windows-artifact - runs-on: windows-latest - if : ${{ github.event_name == 'api' && 'cron' || github.ref == 'refs/heads/master'}} - steps: - - name: release artifact - run: | - git clone git://git.openssl.org/openssl.git - cd openssl - make - make test - make install - openssl version -# choco install openssl -# vcpkg integrate install -# refreshenv - - - name: Checkout repository - uses: actions/checkout@v2 - - uses: actions/checkout@v2 - - run: choco install msys2 - - uses: actions/checkout@v2 - - run: | - openssl version - bash ci/rust-version.sh - readlink -f . - bash ci/env.sh - rustup set profile default - bash ci/publish-tarball.sh - shell: bash - - - name: Cache modules - uses: actions/cache@v1 - id: yarn-cache - with: - path: node_modules - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: ${{ runner.os }}-yarn- - -# - To stop from uploading on the production -# - name: Config. aws cred -# uses: aws-actions/configure-aws-credentials@v1 -# with: -# aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} -# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -# aws-region: us-east-2 -# - name: Deploy -# uses: shallwefootball/s3-upload-action@master -# with: -# folder: build -# aws_bucket: ${{ secrets.AWS_S3_BUCKET }} -# aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} -# aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} -# destination_dir: / -# bucket-region: us-east-2 -# delete-removed: true -# no-cache: true -# private: true - -# Docs: -# needs: [windows-artifact,release-artifact] -# runs-on: ubuntu-latest -# env: -# GITHUB_TOKEN: ${{secrets.PAT_NEW}} -# GITHUB_EVENT_BEFORE: ${{ github.event.before }} -# GITHUB_EVENT_AFTER: ${{ github.event.after }} -# COMMIT_RANGE: ${{ github.event.before}}...${{ github.event.after}} -# steps: -# - name: Checkout repo -# uses: actions/checkout@v2 -# with: -# fetch-depth: 2 -# - name: docs -# if: ${{github.event_name == 'pull_request' || startsWith(github.ref, 'refs/tags/v')}} -# run: | -# touch .env -# echo "COMMIT_RANGE=($COMMIT_RANGE)" > .env -# source ci/env.sh -# .travis/channel_restriction.sh edge beta || exit 0 -# .travis/affects.sh docs/ .travis || exit 0 -# cd docs/ -# source .travis/before_install.sh -# source .travis/script.sh -# - name: setup-node -# uses: actions/checkout@v2 -# - name: setup-node -# uses: actions/setup-node@v2 -# with: -# node-version: 'lts/*' -# - name: Cache -# uses: actions/cache@v1 -# with: -# path: ~/.npm -# key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }} -# restore-keys: | -# ${{ runner.OS }}-npm-cache-2 - -# auto_bump: -# needs: [windows-artifact,release-artifact,Docs] -# runs-on: ubuntu-latest -# steps: -# - name : checkout repo -# uses: actions/checkout@v2 -# with: -# fetch-depth: '0' -# - name: Bump version and push tag -# uses: anothrNick/github-tag-action@1.26.0 -# env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# WITH_V: true -# DEFAULT_BUMP: patch diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index bdeeba57a25b05..b78acbb9ab1e2b 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -1,6 +1,6 @@ //! The `blockstore` module provides functions for parallel verification of the //! Proof of History ledger as well as iterative read, append write, and random -//! access read to a persistent file-based ledger. +//! access read to a persistent file-based ledger..... use { crate::{ diff --git a/rust-toolchain.toml b/rust-toolchain.toml deleted file mode 100644 index 588ffd57885e05..00000000000000 --- a/rust-toolchain.toml +++ /dev/null @@ -1,2 +0,0 @@ -[toolchain] -channel = "1.67.1"