Skip to content

Commit

Permalink
C++: fix autobuild pr-checks for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Paolo Tranquilli committed Oct 24, 2023
1 parent 54e4af6 commit 959337a
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/__cpp-deptrace-disabled.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 76 additions & 0 deletions .github/workflows/__cpp-deptrace-enabled-on-macos.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions .github/workflows/__cpp-deptrace-enabled.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pr-checks/checks/cpp-deptrace-disabled.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
28 changes: 28 additions & 0 deletions pr-checks/checks/cpp-deptrace-enabled-on-macos.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pr-checks/checks/cpp-deptrace-enabled.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 959337a

Please sign in to comment.