]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update CI to work around missing version.rs
authorMatt Corallo <git@bluematt.me>
Sun, 2 May 2021 22:36:34 +0000 (22:36 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 2 May 2021 22:47:28 +0000 (22:47 +0000)
.github/workflows/build.yml

index b68feb7b96c1b05af6e74567d00d6e1574ad7067..b64b7c09c5d4b6e6b20500bfdaa0487be3965a1c 100644 (file)
@@ -18,9 +18,14 @@ jobs:
           apt-get -y install cargo libstd-rust-dev-wasm32 valgrind lld git g++ clang
       - name: Checkout source code
         uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
       - name: Sanity test bindings against Cargo.toml RL
         working-directory: lightning-c-bindings
-        run: cargo check
+        run: |
+          # Note that the version tags aren't checked into git
+          touch src/version.rs
+          cargo check
       - name: Install cbindgen
         run: cargo install --force cbindgen
       - name: Checkout Rust-Lightning git