Skip to content

Build

Build #18

Workflow file for this run

name: Build
on:
release:
types: [published]
workflow_dispatch: {}
env:
CARGO_TERM_COLOR: always
jobs:
build-rust:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
exe: omega
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev
- os: windows-latest
exe: omega.exe
- os: macos-latest
exe: omega
steps:
- name: Dependencies
run: ${{ matrix.run }}
- uses: actions/checkout@v4
- name: Build
run: cargo build -r
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.exe }}
path: target/release/${{ matrix.exe }}
- name: Rename
run: cp target/release/${{ matrix.exe }} ${{ matrix.os }}-${{ matrix.exe }}
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ matrix.os }}-${{ matrix.exe }}