Skip to content

Merge pull request #73 from ktwrd/housekeeping/cargo-fix #276

Merge pull request #73 from ktwrd/housekeeping/cargo-fix

Merge pull request #73 from ktwrd/housekeeping/cargo-fix #276

Workflow file for this run

name: Compile
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-22.04
filename: 'beans'
target: x86_64-unknown-linux-gnu
- os: windows-2022
target: x86_64-pc-windows-msvc
filename: 'beans.exe'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
with:
lfs: true
- name: Install Build Dependencies (ubuntu)
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: |
sudo apt-get update;
sudo apt-get install -y \
g++ \
gdb \
git \
make \
cmake \
autoconf \
libx11-dev \
libglu1-mesa-dev \
libxft-dev \
libxcursor-dev \
libasound2-dev \
freeglut3-dev \
libcairo2-dev \
libfontconfig1-dev \
libglew-dev \
libjpeg-dev \
libpng-dev \
libpango1.0-dev \
libxinerama-dev \
libfltk1.3 \
libfltk1.3-dev \
libssl-dev
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2026-05-09
targets: ${{ matrix.target }}
- name: Compile ${{ matrix.filename }}
run: |
cargo build --verbose --target ${{ matrix.target }}
- name: Code Signing (Windows)
if: ${{ matrix.os == 'windows-2022' }}
uses: skymatic/code-sign-action@v3
with:
certificate: '${{ secrets.CODESIGN }}'
password: '${{ secrets.CODESIGN_PASSWORD }}'
folder: 'target/${{ matrix.target }}/debug'
description: 'beans'
certificatesha1: '${{ secrets.CODESIGN_HASH }}'
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: binary-${{ matrix.os }}-${{ matrix.target }}
path: target/${{ matrix.target }}/debug/${{ matrix.filename }}