-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Cpp: disabling autoinstalling dependencies" | ||
description: "Checks that running C/C++ autobuild with autoinstalling dependencies explicitly disabled works" | ||
operatingSystems: ["ubuntu", "macos"] | ||
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: false | ||
- shell: bash | ||
run: | | ||
if ls /usr/bin/errno; then | ||
echo "Did autoinstall errno, and it should not have" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: "Cpp: enabling autoinstalling dependencies" | ||
description: "Checks that running C/C++ autobuild with autoinstalling dependencies works" | ||
operatingSystems: ["ubuntu", "macos"] | ||
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 "Did not autoinstall errno" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
|
||
errno || true # just a command to check its autoinstallation by deptrace | ||
|
||
gcc -o main main.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "stdio.h" | ||
|
||
int main(int argc, char **argv) { | ||
if (1) { | ||
printf("Hello, World!\n"); | ||
} | ||
} | ||
|