Skip to content

Commit 3f966e4

Browse files
committed
Test wrt libstdc++
1 parent 5bd2c80 commit 3f966e4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ jobs:
6767
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
6868
echo 'gcc-path = "/usr/lib/"' > config.toml
6969
70+
- name: Install libstdc++
71+
run: sudo apt-get install libstdc++6
72+
73+
- run: cc tests/main.cpp -o main -lstdc++
74+
- run: cc tests/main.cpp -o main
75+
7076
- name: Set env
7177
run: |
7278
echo "workspace="$GITHUB_WORKSPACE >> $GITHUB_ENV

tests/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#include <iostream>
2+
3+
int main() {
4+
std::cout << "Hello, world!\n";
5+
return 0;
6+
}

0 commit comments

Comments
 (0)