Skip to content

Commit

Permalink
Github publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed Aug 21, 2021
1 parent 530c2b3 commit 4c5b8b3
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
push:
tags:
- 'v*'

name: Release

jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
name: ['macOS', 'Windows', 'Linux']
include:
- name: Linux
os: ubuntu-latest
copy: mkdir package && cp -R res config package/ && cd target/release && cp road model car level convert ../../package
- name: macOS
os: macos-latest
copy: mkdir package && cp -R res config package/ && cd target/release && cp road model car level convert ../../package
- name: Windows
os: windows-latest
copy: mkdir package && copy res package/ && copy config package/ && copy target\\release\\*.exe package
steps:
- uses: actions/checkout@v2
- name: Build
run: cargo build --release
- name: Copy executables
run: ${{ matrix.copy }}
- name: Pack
uses: papeloto/action-zip@v1
with:
files: package
dest: vangers-${{ matrix.os }}.zip
recursive: true
- name: Upload builds
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
file: vangers-${{ matrix.os }}.zip
tag: ${{ github.ref }}
3 changes: 0 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ members = [
"lib/tiff",
]

[profile.release]
debug = true

[lib]

[features]
Expand Down
68 changes: 68 additions & 0 deletions config/settings-linux-3rdperson.ron
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
(
data_path: "/Applications/Gog/Vangers.app/Contents/Resources/game",
game: (
level: "Fostral", // see `wrlds.dat` for the list
cycle: "Eleerection", // see `bunches.prm` for the list, leave empty for bonus worlds
view: Perspective, // can be "Flat" or "Perspective"
camera: (
angle: 15,
height: 15,
target_overhead: 3,
speed: 5,
depth_range: (10, 400),
fog_depth: 50,
),
other: (
count: 10, // number of NPC vangers
spawn_at: Random, // Player
),
physics: (
max_quant: 0.1,
shape_sampling: 1,
gpu_collision: None/*Some(( // blocked by atomics
max_objects: 100,
max_polygons_total: 1000,
max_raster_size: (100, 100),
))*/,
),
),
car: (
id: "OxidizeMonk",
//example: "IronShadow"
color: Green, // Dummy, Red, Blue, Yellow, Gray
slots: [],
//example: ["HeavyLaser", "LightMissile", "LightFireBall"]
),
window: (
title: "Rusty Road",
size: (2280, 1800),
reload_on_focus: true,
),
backend: Auto, // Vulkan, Metal, DX12, DX11
render: (
light: (
pos: (1, 4, 4, 0), // w=0 for directional, w=1 for point light
color: (1, 1, 1, 1),
shadow: (
size: 1024,
terrain: RayTraced,
),
),
fog: (
color: (0.1, 0.2, 0.3, 1.0),
depth: 50,
),
terrain:
// RayTraced,
// RayMipTraced (mip_count: 10, max_jumps: 25, max_steps: 100, debug: false),
// Scattered( density: (2, 2, 2) ), // blocked by NumWorkgroups builtin
// Sliced,
Painted,
debug: (
max_vertices: 512,
collision_shapes: false,
collision_map: false,
impulses: false,
),
),
)

0 comments on commit 4c5b8b3

Please sign in to comment.