Test different method for arm builds
This commit is contained in:
parent
2ce327d345
commit
a2a594980c
|
@ -12,7 +12,19 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
node-version: [12.x]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
runtime: [ linux-x64, linux-arm64, win-x64, osx-x64 ]
|
||||
include:
|
||||
- runtime: linux-x64
|
||||
os: ubuntu-latest
|
||||
|
||||
- runtime: linux-arm64
|
||||
os: ubuntu-latest
|
||||
|
||||
- runtime: osx-x64
|
||||
os: macOS-latest
|
||||
|
||||
- runtime: win-x64
|
||||
os: windows-latest
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
|
@ -27,41 +39,25 @@ jobs:
|
|||
- run: npm run build --if-present
|
||||
- name: Upload .deb Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
with:
|
||||
name: freetube-vue_0.8.0_amd64.deb
|
||||
path: build/freetube-vue_0.8.0_amd64.deb
|
||||
- name: Upload AppImage Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
with:
|
||||
name: freetube-vue_0.8.0_amd64.AppImage
|
||||
path: build/FreeTube-Vue-0.8.0.AppImage
|
||||
- name: Upload .rpm Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
if: startsWith(matrix.os, 'ubuntu') && startsWith(matrix.runtime, 'linux-x64')
|
||||
with:
|
||||
name: freetube-vue_0.8.0_amd64.rpm
|
||||
path: build/freetube-vue-0.8.0.x86_64.rpm
|
||||
- name: Build with ARM64
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
uses: uraimo/run-on-arch-action@v1.0.9
|
||||
with:
|
||||
architecture: aarch64
|
||||
distribution: ubuntu20.04
|
||||
run: |
|
||||
apt install -y curl
|
||||
curl -sL https://rpm.nodesource.com/setup_lts.x | bash -
|
||||
apt update
|
||||
apt install -y nodejs
|
||||
apt install -y build-essential
|
||||
apt install -y npm
|
||||
npm install
|
||||
npm run lint
|
||||
npm run build --if-present
|
||||
- name: Upload Linux ARM64 .deb Artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
if: startsWith(matrix.os, 'ubuntu')
|
||||
if: startsWith(matrix.os, 'ubuntu-latest') && startsWith(matrix.runtime, 'linux-arm64')
|
||||
with:
|
||||
name: freetube-vue_0.8.0_arm64.deb
|
||||
path: build/freetube-vue_0.8.0_arm64.deb
|
||||
|
|
Loading…
Reference in New Issue