diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index ad84d8d..f2b50f4 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -35,10 +35,11 @@ jobs: with: version: ${{ matrix.qt-ver }} cached: ${{ steps.cache-qt.outputs.cache-hit }} - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: fetch-depth: 1 submodules: 'true' + ssh-key: ${{ secrets.BOT_SSH_KEY }} # 编译 - name: Build MacOS env: diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 929ae01..e5e4cfd 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -40,10 +40,11 @@ jobs: cached: ${{ steps.cache-qt.outputs.cache-hit }} - name: Ubuntu install GL library run: sudo apt-get install -y libglew-dev libglfw3-dev - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: fetch-depth: 1 submodules: 'true' + ssh-key: ${{ secrets.BOT_SSH_KEY }} - name: Build Ubuntu env: ENV_QT_PATH: ${{ env.qt-install-path }} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index daf7079..561fd73 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -64,10 +64,11 @@ jobs: arch: ${{ matrix.qt-arch }} cached: ${{ steps.cache-qt.outputs.cache-hit }} # 拉取代码 - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 with: fetch-depth: 1 submodules: 'true' + ssh-key: ${{ secrets.BOT_SSH_KEY }} # 编译msvc - name: Build MSVC # shell介绍 https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell