C++: fix autobuild pr-checks for macOS
This commit is contained in:
parent
54e4af648d
commit
959337a156
6 changed files with 106 additions and 6 deletions
|
|
@ -1,6 +1,6 @@
|
|||
name: "Cpp: disabling autoinstalling dependencies"
|
||||
description: "Checks that running C/C++ autobuild with autoinstalling dependencies explicitly disabled works"
|
||||
operatingSystems: ["ubuntu", "macos"]
|
||||
operatingSystems: ["ubuntu"]
|
||||
versions: ["latest"]
|
||||
env:
|
||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||
|
|
|
|||
28
pr-checks/checks/cpp-deptrace-enabled-on-macos.yml
Normal file
28
pr-checks/checks/cpp-deptrace-enabled-on-macos.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
name: "Cpp: disabling autoinstalling dependencies"
|
||||
description: "Checks that running C/C++ autobuild with autoinstalling dependencies explicitly disabled works"
|
||||
operatingSystems: ["macos"]
|
||||
versions: ["latest"]
|
||||
env:
|
||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||
steps:
|
||||
- name: Test setup
|
||||
shell: bash
|
||||
run: |
|
||||
cp -a ../action/tests/cpp-autobuild autobuild-dir
|
||||
- uses: ./../action/init
|
||||
with:
|
||||
languages: cpp
|
||||
tools: ${{ steps.prepare-test.outputs.tools-url }}
|
||||
- uses: ./../action/autobuild
|
||||
with:
|
||||
working-directory: autobuild-dir
|
||||
env:
|
||||
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
|
||||
- shell: bash
|
||||
run: |
|
||||
if ! ls /usr/bin/errno; then
|
||||
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
|
||||
else
|
||||
echo "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES should not have had any effect on macOS"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
name: "Cpp: enabling autoinstalling dependencies"
|
||||
description: "Checks that running C/C++ autobuild with autoinstalling dependencies works"
|
||||
operatingSystems: ["ubuntu", "macos"]
|
||||
operatingSystems: ["ubuntu"]
|
||||
versions: ["latest"]
|
||||
env:
|
||||
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue