|
23 | 23 | with:
|
24 | 24 | changelog: CHANGELOG.md
|
25 | 25 | token: ${{ secrets.GITHUB_TOKEN }}
|
| 26 | + upload-assets: |
| 27 | + strategy: |
| 28 | + matrix: |
| 29 | + include: |
| 30 | + # Tier 1 |
| 31 | + - target: x86_64-unknown-linux-gnu |
| 32 | + os: ubuntu-latest |
| 33 | + # Tier 1 |
| 34 | + - target: aarch64-unknown-linux-gnu |
| 35 | + os: ubuntu-latest |
| 36 | + # Tier 2 |
| 37 | + - target: armv7-unknown-linux-gnueabihf |
| 38 | + os: ubuntu-latest |
| 39 | + # Tier 1 |
| 40 | + - target: x86_64-apple-darwin |
| 41 | + os: macos-latest |
| 42 | + # Tier 2 |
| 43 | + - target: aarch64-apple-darwin |
| 44 | + os: macos-latest |
| 45 | + # Universal macOS binary is supported as universal-apple-darwin. |
| 46 | + - target: universal-apple-darwin |
| 47 | + os: macos-latest |
| 48 | + # Tier 1 |
| 49 | + - target: x86_64-pc-windows-msvc |
| 50 | + os: windows-latest |
| 51 | + # Tier 2 |
| 52 | + # - target: aarch64-pc-windows-msvc |
| 53 | + # os: windows-latest |
| 54 | + runs-on: ${{ matrix.os }} |
| 55 | + steps: |
| 56 | + - name: VCS Checkout |
| 57 | + uses: actions/checkout@v3 |
| 58 | + # Required by arm targets |
| 59 | + - name: Install packages |
| 60 | + uses: awalsh128/cache-apt-pkgs-action@latest |
| 61 | + with: |
| 62 | + packages: pkg-config openssl libssl-dev |
| 63 | + version: 1.1 |
| 64 | + if: matrix.os == 'ubuntu-latest' |
| 65 | + - name: Setup Node.js 18 |
| 66 | + uses: actions/setup-node@v3 |
| 67 | + with: |
| 68 | + node-version: 18 |
| 69 | + - name: Install Yarn |
| 70 | + uses: borales/actions-yarn@v4 |
| 71 | + with: |
| 72 | + cmd: --cwd plugins/graphql-client/web install |
| 73 | + - name: Install Yarn |
| 74 | + uses: borales/actions-yarn@v4 |
| 75 | + with: |
| 76 | + cmd: --cwd plugins/graphql-schema-visualization/web install |
| 77 | + - name: Upload Rust Binary |
| 78 | + uses: taiki-e/upload-rust-binary-action@v1 |
| 79 | + with: |
| 80 | + bin: libinexor_rgf_plugin_standalone |
| 81 | + target: ${{ matrix.target }} |
| 82 | + include: LICENSE.md,README.md,CHANGELOG.md,config,plugins |
| 83 | + tar: unix |
| 84 | + zip: windows |
| 85 | + leading_dir: true |
| 86 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 87 | + env: |
| 88 | + VERGEN_IDEMPOTENT: true |
26 | 89 | crates-io:
|
27 | 90 | name: Publish on crates.io
|
28 | 91 | runs-on: ubuntu-latest
|
|
70 | 133 | matrix:
|
71 | 134 | include:
|
72 | 135 | - target: x86_64-unknown-linux-gnu
|
73 |
| - os: ubuntu-latest |
| 136 | + os: ubuntu-20.04 |
74 | 137 | - target: aarch64-unknown-linux-gnu
|
75 | 138 | os: ubuntu-20.04
|
76 | 139 | - target: armv7-unknown-linux-gnueabihf
|
|
0 commit comments