2022-08-26 01:25:10 +00:00
|
|
|
name: Build & Upload Launcher
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
2022-08-26 09:53:36 +00:00
|
|
|
paths: [ "src/**" ]
|
2022-08-26 01:25:10 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
2022-08-26 09:53:36 +00:00
|
|
|
paths: [ "src/**" ]
|
2022-09-24 16:04:27 +00:00
|
|
|
|
|
|
|
workflow_dispatch:
|
2022-08-26 01:25:10 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_and_upload:
|
2022-08-26 01:29:59 +00:00
|
|
|
runs-on: ubuntu-22.04
|
2022-08-26 01:25:10 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
2022-08-26 01:29:59 +00:00
|
|
|
|
|
|
|
- name: Install Deps
|
2022-08-26 01:33:03 +00:00
|
|
|
run: sudo apt install -y libgtk-4-1 libgtk-4-dev libadwaita-1-0 libadwaita-1-dev
|
2022-08-26 01:25:10 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --release --verbose
|
|
|
|
|
|
|
|
- name: Upload a Build Artifact
|
|
|
|
uses: actions/upload-artifact@v3.1.0
|
|
|
|
with:
|
|
|
|
name: Launcher
|
|
|
|
path: target/release/anime-game-launcher
|
2022-09-24 16:02:28 +00:00
|
|
|
|
|
|
|
build_and_upload_exp:
|
|
|
|
runs-on: ubuntu-latest
|
2022-09-24 16:09:05 +00:00
|
|
|
needs: build_and_upload
|
2022-09-24 16:10:03 +00:00
|
|
|
if: ${{ always() && needs.build_and_upload.result == 'failure' }}
|
2022-09-24 16:02:28 +00:00
|
|
|
|
|
|
|
container:
|
2022-09-24 16:30:56 +00:00
|
|
|
image: ubuntu:devel
|
2022-09-24 16:02:28 +00:00
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
|
|
|
|
steps:
|
2022-11-03 06:04:27 +00:00
|
|
|
- name: Install Deps
|
2022-09-24 16:02:28 +00:00
|
|
|
run: |
|
|
|
|
apt update
|
2022-11-03 05:59:20 +00:00
|
|
|
apt install -y libgtk-4-1 libgtk-4-dev libadwaita-1-0 libadwaita-1-dev git curl openssl libssl-dev
|
2022-11-03 06:04:27 +00:00
|
|
|
|
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
2022-09-24 16:20:15 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
2022-09-24 16:02:28 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --release --verbose
|
|
|
|
|
|
|
|
- name: Upload a Build Artifact
|
|
|
|
uses: actions/upload-artifact@v3.1.0
|
|
|
|
with:
|
|
|
|
name: Launcher
|
|
|
|
path: target/release/anime-game-launcher
|