|
| 1 | +name: Build CLI |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + pull_request: |
| 8 | + |
| 9 | +jobs: |
| 10 | + build_aarch64_apple_darwin: |
| 11 | + runs-on: macos-latest |
| 12 | + name: Build aarch64-apple-darwin target |
| 13 | + steps: |
| 14 | + - uses: actions/checkout@v2 |
| 15 | + - name: Install Rust |
| 16 | + run: rustup toolchain install stable |
| 17 | + - name: Run Build Script |
| 18 | + run: | |
| 19 | + cd crates/web5_cli/build/aarch64_apple_darwin |
| 20 | + ./build |
| 21 | + - name: Upload executable |
| 22 | + uses: actions/upload-artifact@v3 |
| 23 | + with: |
| 24 | + name: web5-aarch64-apple-darwin |
| 25 | + path: target/aarch64-apple-darwin/release/web5_cli |
| 26 | + |
| 27 | + build_x86_64_apple_darwin: |
| 28 | + runs-on: macos-12 |
| 29 | + name: Build x86_64-apple-darwin target |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v2 |
| 32 | + - name: Install Rust |
| 33 | + run: rustup toolchain install stable |
| 34 | + - name: Run Build Script |
| 35 | + run: | |
| 36 | + cd crates/web5_cli/build/x86_64_apple_darwin |
| 37 | + ./build |
| 38 | + - name: Upload executable |
| 39 | + uses: actions/upload-artifact@v3 |
| 40 | + with: |
| 41 | + name: web5-x86_64-apple-darwin |
| 42 | + path: target/x86_64-apple-darwin/release/web5_cli |
| 43 | + |
| 44 | + build_x86_64_unknown_linux_gnu: |
| 45 | + runs-on: ubuntu-latest |
| 46 | + name: Build x86_64-unknown-linux-gnu target |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v2 |
| 49 | + - name: Run Build Script |
| 50 | + run: | |
| 51 | + cd crates/web5_cli/build/x86_64_unknown_linux_gnu |
| 52 | + ./build |
| 53 | + - name: Upload executable |
| 54 | + uses: actions/upload-artifact@v3 |
| 55 | + with: |
| 56 | + name: web5-x86_64-linux-gnu |
| 57 | + path: target/x86_64-unknown-linux-gnu/release/web5_cli |
| 58 | + |
| 59 | + build_x86_64_unknown_linux_musl: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + name: Build x86_64-unknown-linux-musl target |
| 62 | + steps: |
| 63 | + - uses: actions/checkout@v2 |
| 64 | + - name: Run Build Script |
| 65 | + run: | |
| 66 | + cd crates/web5_cli/build/x86_64_unknown_linux_musl |
| 67 | + ./build |
| 68 | + - name: Upload executable |
| 69 | + uses: actions/upload-artifact@v3 |
| 70 | + with: |
| 71 | + name: web5-x86_64-linux-musl |
| 72 | + path: target/x86_64-unknown-linux-musl/release/web5_cli |
0 commit comments