Skip to content

Commit fac2c7f

Browse files
CI fixes
1 parent 43a2504 commit fac2c7f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/check-builds.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ on:
1919

2020
jobs:
2121
ubuntu-build:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-22.04
2323
steps:
2424
- name: Set environment
2525
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
2626
shell: bash
2727
- uses: actions/checkout@v3
2828
with:
2929
submodules: recursive
30-
fetch-depth: 0
3130
- name: Install dependencies
3231
run: sudo apt install clang cmake snap libsqlite3-dev -y && sudo snap install powershell --classic
3332
- name: Check compilation
@@ -66,7 +65,6 @@ jobs:
6665
- uses: actions/checkout@v3
6766
with:
6867
submodules: recursive
69-
fetch-depth: 0
7068
- name: Check compilation
7169
run: |
7270
$versions = "104", "728", "1013"
@@ -112,17 +110,14 @@ jobs:
112110
path: bin
113111

114112
copy-artifacts:
115-
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
113+
if: github.event_name != 'pull_request' && (github.ref_type == 'tag' || github.ref_name == 'master')
116114
runs-on: ubuntu-latest
117115
needs: [windows-build, ubuntu-build]
118116
env:
119117
BOT_SSH_KEY: ${{ secrets.BOT_SSH_KEY }}
120118
ENDPOINT: ${{ secrets.ENDPOINT }}
121119
steps:
122120
- uses: actions/checkout@v3
123-
with:
124-
submodules: recursive
125-
fetch-depth: 0
126121
- run: |
127122
GITDESC=$(git describe --tags)
128123
mkdir $GITDESC

0 commit comments

Comments
 (0)