|
21 | 21 | body: This is an automated release for ${{ github.ref }}. It will be used to speed up `npm install`. |
22 | 22 | env: |
23 | 23 | GITHUB_TOKEN: ${{ github.token }} |
| 24 | + linux-arm-drm: |
| 25 | + runs-on: ubuntu-latest |
| 26 | + needs: create_release |
| 27 | + steps: |
| 28 | + - name: checkout |
| 29 | + uses: actions/checkout@v2 |
| 30 | + with: |
| 31 | + fetch-depth: 0 |
| 32 | + - name: Set up QEMU |
| 33 | + uses: docker/setup-qemu-action@v2 |
| 34 | + - name: Cache Node Dependencies |
| 35 | + id: cache |
| 36 | + uses: actions/cache@v2 |
| 37 | + with: |
| 38 | + path: ./node_modules |
| 39 | + key: modules-${{ hashFiles('package-lock.json') }} |
| 40 | + - name: Build for arm |
| 41 | + run: docker run --platform linux/arm --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild-drm.sh |
| 42 | + - name: upload linux artifact |
| 43 | + uses: actions/upload-release-asset@v1 |
| 44 | + env: |
| 45 | + GITHUB_TOKEN: ${{ github.token }} |
| 46 | + with: |
| 47 | + upload_url: ${{ needs.create_release.outputs.upload_url }} |
| 48 | + asset_path: ./build/Release/node-raylib.node |
| 49 | + asset_name: node-raylib-linux-arm-drm.node |
| 50 | + asset_content_type: application/octet-stream |
| 51 | + linux-arm64-drm: |
| 52 | + runs-on: ubuntu-latest |
| 53 | + needs: create_release |
| 54 | + steps: |
| 55 | + - name: checkout |
| 56 | + uses: actions/checkout@v2 |
| 57 | + with: |
| 58 | + fetch-depth: 0 |
| 59 | + - name: Set up QEMU |
| 60 | + uses: docker/setup-qemu-action@v2 |
| 61 | + - name: Cache Node Dependencies |
| 62 | + id: cache |
| 63 | + uses: actions/cache@v2 |
| 64 | + with: |
| 65 | + path: ./node_modules |
| 66 | + key: modules-${{ hashFiles('package-lock.json') }} |
| 67 | + - name: Build for arm |
| 68 | + run: docker run --platform linux/arm64 --rm -v "${PWD}:/work" -w /work node ./tools/crossbuild-drm.sh |
| 69 | + - name: upload linux artifact |
| 70 | + uses: actions/upload-release-asset@v1 |
| 71 | + env: |
| 72 | + GITHUB_TOKEN: ${{ github.token }} |
| 73 | + with: |
| 74 | + upload_url: ${{ needs.create_release.outputs.upload_url }} |
| 75 | + asset_path: ./build/Release/node-raylib.node |
| 76 | + asset_name: node-raylib-linux-arm64-drm.node |
| 77 | + asset_content_type: application/octet-stream |
24 | 78 | linux-arm: |
25 | 79 | runs-on: ubuntu-latest |
26 | 80 | needs: create_release |
|
46 | 100 | with: |
47 | 101 | upload_url: ${{ needs.create_release.outputs.upload_url }} |
48 | 102 | asset_path: ./build/Release/node-raylib.node |
49 | | - asset_name: node-raylib-4.0-linux-arm.node |
| 103 | + asset_name: node-raylib-linux-arm.node |
50 | 104 | asset_content_type: application/octet-stream |
51 | 105 | linux-arm64: |
52 | 106 | runs-on: ubuntu-latest |
|
73 | 127 | with: |
74 | 128 | upload_url: ${{ needs.create_release.outputs.upload_url }} |
75 | 129 | asset_path: ./build/Release/node-raylib.node |
76 | | - asset_name: node-raylib-4.0-linux-arm64.node |
| 130 | + asset_name: node-raylib-linux-arm64.node |
77 | 131 | asset_content_type: application/octet-stream |
78 | 132 | linux: |
79 | 133 | runs-on: ubuntu-latest |
@@ -103,7 +157,7 @@ jobs: |
103 | 157 | with: |
104 | 158 | upload_url: ${{ needs.create_release.outputs.upload_url }} |
105 | 159 | asset_path: ./build/Release/node-raylib.node |
106 | | - asset_name: node-raylib-4.0-linux-x64.node |
| 160 | + asset_name: node-raylib-linux-x64.node |
107 | 161 | asset_content_type: application/octet-stream |
108 | 162 | windows: |
109 | 163 | runs-on: windows-latest |
@@ -131,7 +185,7 @@ jobs: |
131 | 185 | with: |
132 | 186 | upload_url: ${{ needs.create_release.outputs.upload_url }} |
133 | 187 | asset_path: ./build/Release/node-raylib.node |
134 | | - asset_name: node-raylib-4.0-win32-x64.node |
| 188 | + asset_name: node-raylib-win32-x64.node |
135 | 189 | asset_content_type: application/octet-stream |
136 | 190 | macos: |
137 | 191 | runs-on: macos-latest |
@@ -159,5 +213,5 @@ jobs: |
159 | 213 | with: |
160 | 214 | upload_url: ${{ needs.create_release.outputs.upload_url }} |
161 | 215 | asset_path: ./build/Release/node-raylib.node |
162 | | - asset_name: node-raylib-4.0-darwin-x64.node |
| 216 | + asset_name: node-raylib-darwin-x64.node |
163 | 217 | asset_content_type: application/octet-stream |
0 commit comments