|
| 1 | +name: release binaries |
| 2 | + |
| 3 | +on: |
| 4 | + release: |
| 5 | + types: [published] |
| 6 | + |
| 7 | +env: |
| 8 | + CARGO_TERM_COLOR: always |
| 9 | + |
| 10 | +jobs: |
| 11 | + build: |
| 12 | + |
| 13 | + runs-on: ubuntu-latest |
| 14 | + |
| 15 | + steps: |
| 16 | + - uses: actions/checkout@v2 |
| 17 | + - name: Toolchain installation |
| 18 | + run: sh -c "rustup toolchain install nightly && rustup target add wasm32-unknown-unknown && cargo install wasm-pack" |
| 19 | + |
| 20 | + - name: Build http-auth |
| 21 | + run: sh -c "cd http-auth && wasm-pack build --release" |
| 22 | + |
| 23 | + - uses: actions/upload-artifact@v2 |
| 24 | + with: |
| 25 | + name: http_auth_bg.wasm |
| 26 | + path: ./http-auth/pkg/http_auth_bg.wasm |
| 27 | + |
| 28 | + - name: Build singleton-http-call |
| 29 | + run: sh -c "cd http-auth && wasm-pack build --release" |
| 30 | + |
| 31 | + - uses: actions/upload-artifact@v2 |
| 32 | + with: |
| 33 | + name: singleton_http_call_bg.wasm |
| 34 | + path: ./singleton-http-call/pkg/singleton_http_call_bg.wasm |
| 35 | + |
| 36 | + - name: Build tcp-metrics |
| 37 | + run: sh -c "cd tcp-metrics && wasm-pack build --release" |
| 38 | + |
| 39 | + - uses: actions/upload-artifact@v2 |
| 40 | + with: |
| 41 | + name: tcp_metrics_bg.wasm |
| 42 | + path: ./tcp-metrics/pkg/tcp_metrics_bg |
| 43 | + |
| 44 | + - name: Build tcp-packet-parse |
| 45 | + run: sh -c "cd tcp-packet-parse && wasm-pack build --release" |
| 46 | + |
| 47 | + - uses: actions/upload-artifact@v2 |
| 48 | + with: |
| 49 | + name: tcp_packet_parse_bg.wasm |
| 50 | + path: ./tcp-packet-parse/pkg/tcp_packet_parse_bg.wasm |
| 51 | + |
| 52 | + - name: Build metrics-store |
| 53 | + run: sh -c "cd metrics-store/metrics-collector && wasm-pack build --release && cd metrics-store/singleton-queue && wasm-pack build --release" |
| 54 | + |
| 55 | + - uses: actions/upload-artifact@v2 |
| 56 | + with: |
| 57 | + name: metrics_collector_bg.wasm |
| 58 | + path: ./metrics-store/metrics-collector/pkg/metrics_collector_bg.wasm |
| 59 | + |
| 60 | + - uses: actions/upload-artifact@v2 |
| 61 | + with: |
| 62 | + name: singleton_queue_bg.wasm |
| 63 | + path: ./metrics-store/singleton-queue/pkg/singleton_queue_bg.wasm |
| 64 | + |
| 65 | + |
| 66 | + - name: Build JWTManipulator9000 |
| 67 | + run: sh -c "cd JWTManipulator9000 && wasm-pack build --release" |
| 68 | + |
| 69 | + - uses: actions/upload-artifact@v2 |
| 70 | + with: |
| 71 | + name: jwt_filter_bg.wasm |
| 72 | + path: ./JWTManipulator9000/pkg/jwt_filter_bg.wasm |
0 commit comments