@@ -1139,8 +1139,39 @@ jobs:
1139
1139
1140
1140
# This is ci/actions-templates/freebsd-builds-template.yaml
1141
1141
# Do not edit this file in .github/workflows
1142
- build-freebsd : # job-name
1142
+ build-freebsd-master : # job-name skip-stable
1143
1143
runs-on : ubuntu-latest
1144
+ if : ${{ (github.event_name == 'push' && github.ref_name == 'master') || github.event_name == 'schedule' }} # skip-stable
1145
+ steps :
1146
+ - uses : actions/checkout@v4
1147
+ with :
1148
+ # v2 defaults to a shallow checkout, but we need at least to the previous tag
1149
+ fetch-depth : 0
1150
+ - name : Acquire tags for the repo
1151
+ run : |
1152
+ git fetch --no-tags --prune --depth=1 origin +refs/tags/*:refs/tags/*
1153
+ - name : Run a full build
1154
+ uses : vmactions/freebsd-vm@v1
1155
+ with :
1156
+ release : 13.2
1157
+ usesh : true
1158
+ copyback : false
1159
+ prepare : |
1160
+ pkg install -y git gmake bash sudo
1161
+ run : |
1162
+ echo "========="
1163
+ echo "create non-root user and log into it"
1164
+ pw group add -n tester
1165
+ pw user add -n tester -g tester -s `which bash`
1166
+ pw user mod tester -d `pwd`
1167
+ chown -R tester .
1168
+ sudo -u tester bash ci/freebsd/script.bash
1169
+
1170
+ # This is ci/actions-templates/freebsd-builds-template.yaml
1171
+ # Do not edit this file in .github/workflows
1172
+ build-freebsd-stable : # job-name skip-master
1173
+ runs-on : ubuntu-latest
1174
+ if : ${{ github.event_name == 'push' && github.ref_name == 'stable' }} # skip-master
1144
1175
steps :
1145
1176
- uses : actions/checkout@v4
1146
1177
with :
@@ -1324,7 +1355,8 @@ jobs:
1324
1355
needs :
1325
1356
- build-all-features
1326
1357
- check
1327
- - build-freebsd
1358
+ - build-freebsd-master
1359
+ - build-freebsd-stable
1328
1360
- build-linux-pr
1329
1361
- build-linux-master
1330
1362
- build-linux-stable
0 commit comments