Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
XiangpengHao committed Dec 13, 2023
1 parent 4d31780 commit 5016115
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
ubuntu-build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
lto: ["ON", "OFF"]
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.58.0
toolchain: 1.74.1
override: true
- run: cargo install cxxbridge-cmd
- run: sudo apt update
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# CXX with CMake build system
![CXX CMake CI](https://github.com/XiangpengHao/cxx-cmake-example/workflows/CXX%20CMake%20CI/badge.svg)

Update 1-16-2022: I added a dockerfile to help people reproducing the results reported here.


This is an example repo to setup [cxx](https://github.com/dtolnay/cxx) with the cmake build system.

Expand All @@ -17,6 +15,10 @@ The cmake files do the following things:
2. Create a library from the cxx generated source and link to the rust static library
3. Link and include the libraray to the corresponding targets

## Demo
```bash
docker build . --no-cache --progress plain
```

## Cross-language LTO (linking time optimization)

Expand Down

0 comments on commit 5016115

Please sign in to comment.