Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
[CI] Add git credentials step for fetching private repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare committed Sep 8, 2021
1 parent a1d5d2f commit b2da68b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ jobs:
with:
toolchain: ${{matrix.toolchain}}
override: true

- name: Set git credentials
uses: fusion-engineering/setup-git-credentials@v2
with:
credentials: https://robot-toposware:${{ secrets.ROBOT_TOPOSWARE_PRIV_REPOS_TOKEN }}@github.com
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.toolchain}}
override: true
- name: Test
uses: actions-rs/cargo@v1
with:
Expand All @@ -40,6 +50,18 @@ jobs:
components: clippy
override: true

- name: Set git credentials
uses: fusion-engineering/setup-git-credentials@v2
with:
credentials: https://robot-toposware:${{ secrets.ROBOT_TOPOSWARE_PRIV_REPOS_TOKEN }}@github.com
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: clippy
override: true

- name: Clippy
uses: actions-rs/cargo@v1
with:
Expand All @@ -59,6 +81,18 @@ jobs:
components: rustfmt
override: true

- name: Set git credentials
uses: fusion-engineering/setup-git-credentials@v2
with:
credentials: https://robot-toposware:${{ secrets.ROBOT_TOPOSWARE_PRIV_REPOS_TOKEN }}@github.com
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt
override: true

- name: rustfmt
uses: actions-rs/cargo@v1
with:
Expand All @@ -81,6 +115,17 @@ jobs:
with:
toolchain: ${{matrix.toolchain}}
override: true

- name: Set git credentials
uses: fusion-engineering/setup-git-credentials@v2
with:
credentials: https://robot-toposware:${{ secrets.ROBOT_TOPOSWARE_PRIV_REPOS_TOKEN }}@github.com
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{matrix.toolchain}}
override: true

- run: rustup target add wasm32-unknown-unknown
- name: Build
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit b2da68b

Please # to comment.