Skip to content

Commit

Permalink
[META] Try to make nightly builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwc9876 committed Aug 1, 2023
1 parent 1c1e584 commit cd06804
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v2
Expand Down
79 changes: 79 additions & 0 deletions .github/workflows/nightly_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Nightly Build

on:
workflow_dispatch:
push:
branches: [dev]

jobs:
build:
name: Build Nightly Version
strategy:
fail-fast: false
matrix:
platform: [ubuntu-20.04, windows-latest]
runs-on: ${{ matrix.platform }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev librsvg2-dev
- name: Setup Rust Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Frontend Dependencies
working-directory: owmods_gui/frontend
run: pnpm install

- name: Install Tauri CLI
run: pnpm add -g @tauri-apps/cli

- name: Build GUI
run: pnpm run tauri build --ci -d -b $([[ ${{ matrix.platform }} = 'windows-latest' ]] && echo 'msi nsis' || echo 'appimage deb')
shell: bash

- name: Upload GUI
uses: actions/upload-artifact@v3
with:
name: owmods_gui
path: |
owmods_gui/target/release/bundle/**/*.deb
owmods_gui/target/release/bundle/**/*.AppImage
owmods_gui/target/release/bundle/**/*.msi
owmods_gui/target/release/bundle/**/*.exe
6 changes: 3 additions & 3 deletions .github/workflows/release_gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v2
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
with:
tagName: gui_v__VERSION__
includeUpdaterJson: true
releaseName: 'Outer Wilds Mod Manager GUI Version __VERSION__'
releaseBody: 'See the assets to download and install this version.'
releaseName: "Outer Wilds Mod Manager GUI Version __VERSION__"
releaseBody: "See the assets to download and install this version."
releaseDraft: true
prerelease: false

0 comments on commit cd06804

Please sign in to comment.