From 2cf39b8d740af436d3fe159732b8efaa2d5feb43 Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Wed, 24 Feb 2021 18:40:29 -0300 Subject: [PATCH 1/2] maturin build gh-action --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5fb8354 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + # windows-latest + # https://github.com/ZenGo-X/kms-secp256k1/issues/25 + # https://github.com/vhnatyk/gmp-release + # https://github.com/TonyBogdanov/zip + os: [macOS-latest, ubuntu-latest] + environment: Test + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + - uses: actions/setup-python@v1 + - uses: BSFishy/pip-action@v1 + with: + packages: | + maturin + - name: Build + run: maturin build --release --manylinux off \ No newline at end of file From de03106b4d68d8d11a149771832e70684d6d919d Mon Sep 17 00:00:00 2001 From: Danilo Guanabara Date: Wed, 24 Feb 2021 20:55:42 -0300 Subject: [PATCH 2/2] Fixing yml syntax --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5fb8354..d23e59e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,14 +21,14 @@ jobs: os: [macOS-latest, ubuntu-latest] environment: Test steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 with: toolchain: stable - - uses: actions/setup-python@v1 - - uses: BSFishy/pip-action@v1 - with: - packages: | - maturin - - name: Build - run: maturin build --release --manylinux off \ No newline at end of file + - uses: actions/setup-python@v1 + - uses: BSFishy/pip-action@v1 + with: + packages: | + maturin + - name: Build + run: maturin build --release --manylinux off \ No newline at end of file