|
22 | 22 | profile: minimal |
23 | 23 | - name: Build on Rust ${{ matrix.toolchain }} |
24 | 24 | run: cargo build --verbose --color always |
25 | | - - name: Check formatting |
| 25 | + - name: Check release build on Rust ${{ matrix.toolchain }} |
| 26 | + run: cargo check --release --verbose --color always |
| 27 | + - name: Check formatting on Rust ${{ matrix.toolchain }} |
26 | 28 | if: matrix.check-fmt |
27 | 29 | run: rustup component add rustfmt && cargo fmt --all -- --check |
28 | 30 | - name: Test on Rust ${{ matrix.toolchain }} |
29 | 31 | run: cargo test |
| 32 | + |
| 33 | + # generate_bindings: |
| 34 | + # strategy: |
| 35 | + # matrix: |
| 36 | + # toolchain: [ stable ] |
| 37 | + # runs-on: ubuntu-latest |
| 38 | + # steps: |
| 39 | + # - name: Checkout source code |
| 40 | + # uses: actions/checkout@v2 |
| 41 | + # - name: Install Rust ${{ matrix.toolchain }} toolchain |
| 42 | + # uses: actions-rs/toolchain@v1 |
| 43 | + # with: |
| 44 | + # toolchain: ${{ matrix.toolchain }} |
| 45 | + # override: true |
| 46 | + # profile: minimal |
| 47 | + # - name: Generate language bindings |
| 48 | + # run: scripts/uniffi_bindgen_generate.sh |
| 49 | + # - name: Cache bitcoind binary |
| 50 | + # id: cache-bitcoind |
| 51 | + # uses: actions/cache@v3 |
| 52 | + # with: |
| 53 | + # path: bitcoin-24.0.1-x86_64-linux-gnu.tar.gz |
| 54 | + # key: bitcoin-24.0.1-x86_64-linux-gnu.tar.gz |
| 55 | + # - name: Fetch Bitcoind |
| 56 | + # if: steps.cache-bitcoind.outputs.cache-hit != 'true' |
| 57 | + # run: | |
| 58 | + # curl --verbose -L -o ${BITCOIND_FILENAME} ${BITCOIND_URL} |
| 59 | + # echo "Sha sum: $(sha256sum ${BITCOIND_FILENAME} | awk '{ print $1 }')" |
| 60 | + # if [ "$(sha256sum $BITCOIND_FILENAME | awk '{ print $1 }')" != "${EXPECTED_BITCOIND_SHASUM}" ]; then |
| 61 | + # echo "Bad hash" |
| 62 | + # exit 1 |
| 63 | + # fi |
| 64 | + # tar xvzf ${BITCOIND_FILENAME} |
| 65 | + # ./bitcoin-24.0.1/bin/bitcoind -regtest --fallbackfee=0.00001 & |
| 66 | + # env: |
| 67 | + # EXPECTED_BITCOIND_SHASUM: 49df6e444515d457ea0b885d66f521f2a26ca92ccf73d5296082e633544253bf |
| 68 | + # BITCOIND_URL: https://bitcoincore.org/bin/bitcoin-core-24.0.1/bitcoin-24.0.1-x86_64-linux-gnu.tar.gz |
| 69 | + # BITCOIND_FILENAME: bitcoin-24.0.1-x86_64-linux-gnu.tar.gz |
0 commit comments