Build using GitHub Actions
This commit is contained in:
parent
11cec386a5
commit
474b8f3d60
40
.github/workflows/fox32-unstable-linux.yml
vendored
Normal file
40
.github/workflows/fox32-unstable-linux.yml
vendored
Normal 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
|
41
.github/workflows/fox32-unstable-windows.yml
vendored
Normal file
41
.github/workflows/fox32-unstable-windows.yml
vendored
Normal 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
|
|
@ -8,7 +8,7 @@ build = "build.rs"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
fox32core = { path = "../fox32core" }
|
||||
fox32core = { path = "./fox32core" }
|
||||
image = "0.24"
|
||||
log = "0.4"
|
||||
pixels = "0.9.0"
|
||||
|
|
Loading…
Reference in New Issue
Block a user