mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-10 14:08:33 -06:00
37 lines
807 B
YAML
37 lines
807 B
YAML
name: Linux
|
|
|
|
on: [push]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install SDL2 Packages
|
|
run: apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-gfx-dev
|
|
|
|
- name: Setup Rust Toolchain (Linux)
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
target: x86_64-unknown-linux-gnu
|
|
override: true
|
|
|
|
- name: Rust Cache
|
|
uses: Swatinem/rust-cache@v2
|
|
|
|
- name: Build
|
|
run: cargo build --release
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
path: ./target/pacman
|
|
retention-days: 7
|
|
if-no-files-found: error |