Skip to content

Commit 959337a

Browse files
committed
C++: fix autobuild pr-checks for macOS
1 parent 54e4af6 commit 959337a

File tree

6 files changed

+106
-6
lines changed

6 files changed

+106
-6
lines changed

.github/workflows/__cpp-deptrace-disabled.yml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__cpp-deptrace-enabled-on-macos.yml

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__cpp-deptrace-enabled.yml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/cpp-deptrace-disabled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Cpp: disabling autoinstalling dependencies"
22
description: "Checks that running C/C++ autobuild with autoinstalling dependencies explicitly disabled works"
3-
operatingSystems: ["ubuntu", "macos"]
3+
operatingSystems: ["ubuntu"]
44
versions: ["latest"]
55
env:
66
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Cpp: disabling autoinstalling dependencies"
2+
description: "Checks that running C/C++ autobuild with autoinstalling dependencies explicitly disabled works"
3+
operatingSystems: ["macos"]
4+
versions: ["latest"]
5+
env:
6+
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"
7+
steps:
8+
- name: Test setup
9+
shell: bash
10+
run: |
11+
cp -a ../action/tests/cpp-autobuild autobuild-dir
12+
- uses: ./../action/init
13+
with:
14+
languages: cpp
15+
tools: ${{ steps.prepare-test.outputs.tools-url }}
16+
- uses: ./../action/autobuild
17+
with:
18+
working-directory: autobuild-dir
19+
env:
20+
CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES: true
21+
- shell: bash
22+
run: |
23+
if ! ls /usr/bin/errno; then
24+
echo "As expected, CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES is a no-op on macOS"
25+
else
26+
echo "CODEQL_EXTRACTOR_CPP_AUTOINSTALL_DEPENDENCIES should not have had any effect on macOS"
27+
exit 1
28+
fi

pr-checks/checks/cpp-deptrace-enabled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Cpp: enabling autoinstalling dependencies"
22
description: "Checks that running C/C++ autobuild with autoinstalling dependencies works"
3-
operatingSystems: ["ubuntu", "macos"]
3+
operatingSystems: ["ubuntu"]
44
versions: ["latest"]
55
env:
66
DOTNET_GENERATE_ASPNET_CERTIFICATE: "false"

0 commit comments

Comments
 (0)