-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Enable workflow to clone private repo
- Loading branch information
Showing
2 changed files
with
14 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
Binary file not shown.