From 474b8f3d609cb86c42531726a6893e45c2f93d45 Mon Sep 17 00:00:00 2001 From: Ry Date: Tue, 21 Jun 2022 17:05:54 -0700 Subject: [PATCH] Build using GitHub Actions --- .github/workflows/fox32-unstable-linux.yml | 40 +++++++++++++++++++ .github/workflows/fox32-unstable-windows.yml | 41 ++++++++++++++++++++ Cargo.toml | 2 +- 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/fox32-unstable-linux.yml create mode 100644 .github/workflows/fox32-unstable-windows.yml diff --git a/.github/workflows/fox32-unstable-linux.yml b/.github/workflows/fox32-unstable-linux.yml new file mode 100644 index 0000000..a1143be --- /dev/null +++ b/.github/workflows/fox32-unstable-linux.yml @@ -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 diff --git a/.github/workflows/fox32-unstable-windows.yml b/.github/workflows/fox32-unstable-windows.yml new file mode 100644 index 0000000..8901555 --- /dev/null +++ b/.github/workflows/fox32-unstable-windows.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index acff4ba..e39c3bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"