Skip to content

Commit a41d0d2

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

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ jobs:
5252
# `llvm-14-tools` is needed to install the `FileCheck` binary which is used for asm tests.
5353
run: sudo apt-get install ninja-build ripgrep llvm-14-tools llvm libstdc++6
5454

55-
- run: g++ -v
56-
57-
- run: find / -name libstdc++.so | true
55+
- run: find / -name libstdc++.so 2> /dev/null | true
5856

5957
- name: Install rustfmt & clippy
6058
run: rustup component add rustfmt clippy
@@ -67,6 +65,16 @@ jobs:
6765
sudo dpkg --force-overwrite -i ${{ matrix.libgccjit_version.gcc }}
6866
echo 'gcc-path = "/usr/lib/"' > config.toml
6967
68+
- name: Install libstdc++
69+
run: sudo apt-get --reinstall install libstdc++6
70+
71+
- run: find / -name libstdc++.so 2> /dev/null | true
72+
73+
- run: g++ -v
74+
75+
- run: cc tests/main.cpp -o main -lstdc++
76+
- run: cc tests/main.cpp -o main
77+
7078
- name: Set env
7179
run: |
7280
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)