Skip to content

Commit

Permalink
Fix: Enable workflow to clone private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Anny0nn committed Jan 2, 2025
1 parent 7209a11 commit d375576
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/frontier-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,33 @@ jobs:
permissions:
contents: read
steps:
- name: Checkout the source code
- name: Check out the source code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true

- name: Install deps
run: sudo apt -y install protobuf-compiler

- name: Install & display rust toolchain
run: rustup show

- name: Check targets are installed correctly
run: rustup target list --installed

- name: Configure Git for Cargo
run: |
# Use token for https://
git config --global url."https://${{ secrets.GITHUB_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
# Also replace [email protected]: with https://
git config --global url."https://${{ secrets.GITHUB_TOKEN }}:[email protected]/".insteadOf "[email protected]:"
- name: Configure Cargo
run: |
mkdir -p .cargo
echo '[net]' >> .cargo/config.toml
echo 'git-fetch-with-cli = true' >> .cargo/config.toml
- name: Install deps
run: sudo apt -y install protobuf-compiler

- name: Install & display rust toolchain
run: rustup show

- name: Check targets are installed correctly
run: rustup target list --installed
# echo 'git-fetch-with-cli = true' >> .cargo/config.toml
- name: Build Centrum
run: cargo build --release
Expand Down
Binary file removed node/.DS_Store
Binary file not shown.

0 comments on commit d375576

Please sign in to comment.