Skip to content

Merge pull request #17 from salmmanfred/dependabot/cargo/SOEdownload_… #19

Merge pull request #17 from salmmanfred/dependabot/cargo/SOEdownload_…

Merge pull request #17 from salmmanfred/dependabot/cargo/SOEdownload_… #19

Workflow file for this run

name: Build launcher
on:
- push
- pull_request
jobs:
build:
if: github.event_name == 'pull_request' && github.event.pull_request.merged == false || github.event_name == 'push'
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- { name: "Checkout the code", uses: actions/checkout@v3 }
- name: Setup Rust cache
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ hashFiles('src-tauri/Cargo.lock') }}
path: |
~/.cargo/registry/index
~/.cargo/registry/cache
~/.cargo/git
- name: Install Rust
uses: actions-rs/toolchain@v1
with: { toolchain: stable }
- name: Install Ubuntu dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get upgrade -y --no-install-recommends -y libgtk-3-dev libgtksourceview-3.0-dev webkit2gtk-4.0 libappindicator3-dev webkit2gtk-driver xvfb
- name: Build launcher
working-directory: ./SOElauncher
run: |
cargo build --release
- name: Upload Windows release artifacts
uses: actions/upload-artifact@v2
if: matrix.os == 'windows-latest'
with:
name: launcher-dev-release-windows
path: |
SOElauncher/target/release/SOElauncher.exe
- name: Upload Linux release artifacts
uses: actions/upload-artifact@v2
if: matrix.os == 'ubuntu-latest'
with:
name: launcher-dev-release-linux
path: |
SOElauncher/target/release/SOElauncher