Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: GitHub actions #9

Merged
merged 5 commits into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 31 additions & 28 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,28 @@ on:

jobs:
build:
runs-on: macos-latest

strategy:
matrix:
config:
- os: macos-latest
platform: mac
artifact_name: TREM-Lite-macOS
artifact_path: dist/*.dmg
- os: windows-latest
platform: win
artifact_name: TREM-Lite-Windows
artifact_path: |
dist/*.exe
dist/*.msi
- os: ubuntu-latest
platform: linux
artifact_name: TREM-Lite-Linux
artifact_path: |
dist/*.AppImage
dist/*.deb
node-version: [18]
arch: [arm64]

runs-on: ${{ matrix.config.os }}

steps:
- uses: actions/checkout@v3
Expand All @@ -26,33 +42,20 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build All Platforms
- name: Install Linux dependencies
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y rpm

- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run build

- name: Upload Windows Artifacts
uses: actions/upload-artifact@v3
with:
name: TREM-Lite-Windows
path: |
dist/*.exe
dist/*.msi
if-no-files-found: error

- name: Upload macOS Artifacts
uses: actions/upload-artifact@v3
with:
name: TREM-Lite-macOS
path: |
dist/*.dmg
if-no-files-found: error
run: npm run build:${{ matrix.config.platform }}

- name: Upload Linux Artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: TREM-Lite-Linux
path: |
dist/*.AppImage
dist/*.deb
if-no-files-found: error
name: ${{ matrix.config.artifact_name }}
path: ${{ matrix.config.artifact_path }}
if-no-files-found: error
Loading