2022-08-26 04:25:10 +03:00
|
|
|
name: Build & Upload Launcher
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-03-19 17:42:16 +03:00
|
|
|
branches: [ "main", "next" ]
|
2022-08-26 12:53:36 +03:00
|
|
|
paths: [ "src/**" ]
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-08-26 04:25:10 +03:00
|
|
|
pull_request:
|
2023-03-19 17:42:16 +03:00
|
|
|
branches: [ "main", "next" ]
|
2022-08-26 12:53:36 +03:00
|
|
|
paths: [ "src/**" ]
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-09-24 19:04:27 +03:00
|
|
|
workflow_dispatch:
|
2022-08-26 04:25:10 +03:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
2022-11-16 13:43:52 +03:00
|
|
|
jobs:
|
2022-08-26 04:25:10 +03:00
|
|
|
build_and_upload:
|
2022-09-24 19:02:28 +03:00
|
|
|
runs-on: ubuntu-latest
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-09-24 19:02:28 +03:00
|
|
|
container:
|
2022-09-24 19:30:56 +03:00
|
|
|
image: ubuntu:devel
|
2022-09-24 19:02:28 +03:00
|
|
|
env:
|
|
|
|
DEBIAN_FRONTEND: noninteractive
|
|
|
|
|
|
|
|
steps:
|
2022-11-03 09:04:27 +03:00
|
|
|
- name: Install Deps
|
2022-09-24 19:02:28 +03:00
|
|
|
run: |
|
|
|
|
apt update
|
2022-11-03 08:59:20 +03:00
|
|
|
apt install -y libgtk-4-1 libgtk-4-dev libadwaita-1-0 libadwaita-1-dev git curl openssl libssl-dev
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-11-03 09:04:27 +03:00
|
|
|
- uses: dtolnay/rust-toolchain@stable
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-09-24 19:20:15 +03:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
2023-03-04 16:06:03 +03:00
|
|
|
submodules: recursive
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-09-24 19:02:28 +03:00
|
|
|
- name: Build
|
|
|
|
run: cargo build --release --verbose
|
2023-03-19 17:42:16 +03:00
|
|
|
|
2022-09-24 19:02:28 +03:00
|
|
|
- name: Upload a Build Artifact
|
|
|
|
uses: actions/upload-artifact@v3.1.0
|
|
|
|
with:
|
|
|
|
name: Launcher
|
|
|
|
path: target/release/anime-game-launcher
|