|
1 | 1 | name: Release Rust Crates |
2 | 2 |
|
3 | 3 | on: |
| 4 | + workflow_dispatch: |
| 5 | + pull_request: |
4 | 6 | push: |
5 | | - branches: [ master, develop ] |
6 | | - paths: |
7 | | - - 'source/ports/rs_port/Cargo.toml' |
8 | | - - 'source/ports/rs_port/inline/Cargo.toml' |
| 7 | + branches: [ master, develop, ] |
| 8 | + # branches: [ master, develop ] |
| 9 | + # paths: |
| 10 | + # - 'source/ports/rs_port/Cargo.toml' |
| 11 | + # - 'source/ports/rs_port/inline/Cargo.toml' |
9 | 12 |
|
10 | 13 | concurrency: |
11 | 14 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
|
15 | 18 | CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
16 | 19 |
|
17 | 20 | jobs: |
18 | | - release: |
19 | | - name: Release Rust Port |
| 21 | + test: |
| 22 | + name: Rust Port Tests |
20 | 23 | runs-on: ubuntu-latest |
21 | 24 | steps: |
22 | 25 | - name: Check out the repo |
23 | 26 | uses: actions/checkout@v4 |
24 | 27 | with: |
25 | 28 | fetch-depth: 0 |
26 | | - - name: Release the port |
| 29 | + - name: install metacall |
| 30 | + run: curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh |
| 31 | + - name: Install Rust |
| 32 | + uses: actions-rs/toolchain@v1 |
| 33 | + with: |
| 34 | + toolchain: stable |
| 35 | + override: true |
| 36 | + - name: Set up Rust |
| 37 | + uses: actions-rs/toolchain@v1 |
| 38 | + with: |
| 39 | + toolchain: stable |
| 40 | + override: true |
| 41 | + - name: Build and test the port |
| 42 | + working-directory: source/ports/rs_port |
27 | 43 | run: | |
28 | | - cd source/ports/rs_port |
29 | | - bash ./upload.sh |
| 44 | + cargo build --verbose |
| 45 | + cargo test --verbose |
| 46 | + # release: |
| 47 | + # name: Release Rust Port |
| 48 | + # runs-on: ubuntu-latest |
| 49 | + # steps: |
| 50 | + # - name: Check out the repo |
| 51 | + # uses: actions/checkout@v4 |
| 52 | + # with: |
| 53 | + # fetch-depth: 0 |
| 54 | + # - name: Release the port |
| 55 | + # run: | |
| 56 | + # cd source/ports/rs_port |
| 57 | + # bash ./upload.sh |
0 commit comments