Build using GitHub Actions

This commit is contained in:
Ry 2022-06-21 17:05:54 -07:00
parent 11cec386a5
commit 474b8f3d60
3 changed files with 82 additions and 1 deletions

View File

@ -0,0 +1,40 @@
on:
workflow_dispatch:
push:
branches:
- main
name: fox32 Unstable - Linux
jobs:
fox32-unstable-linux:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check out fox32core
uses: actions/checkout@v2
with:
repository: fox32-arch/fox32core
path: ./fox32core
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install libgtk-3-dev and libasound2-dev
run: |
sudo apt update
sudo apt install -y libgtk-3-dev libasound2-dev
- name: Build
run: cargo build --release
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: fox32
path: target/release/fox32

View File

@ -0,0 +1,41 @@
on:
workflow_dispatch:
push:
branches:
- main
name: fox32 Unstable - Windows
jobs:
fox32-unstable-linux:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check out fox32core
uses: actions/checkout@v2
with:
repository: fox32-arch/fox32core
path: ./fox32core
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
target: x86_64-pc-windows-gnu
- name: Install libgtk-3-dev, libasound2-dev, and mingw-w64
run: |
sudo apt update
sudo apt install -y libgtk-3-dev libasound2-dev mingw-w64
- name: Build
run: cargo build --release --target x86_64-pc-windows-gnu
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: fox32.exe
path: target/release/fox32.exe

View File

@ -8,7 +8,7 @@ build = "build.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
fox32core = { path = "../fox32core" } fox32core = { path = "./fox32core" }
image = "0.24" image = "0.24"
log = "0.4" log = "0.4"
pixels = "0.9.0" pixels = "0.9.0"