Skip to content

Commit

Permalink
add some windows godot extension
Browse files Browse the repository at this point in the history
  • Loading branch information
trevyn committed Sep 13, 2024
1 parent 329fcb9 commit d4398df
Show file tree
Hide file tree
Showing 7 changed files with 690 additions and 3 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,34 @@ permissions:
contents: read

env:
GODOT_VERSION: 4.3-stable
GODOT_VERSION: 4.4-dev2

jobs:
assign:
name: assign build_id
runs-on: ubuntu-latest
steps:
- run: wget https://github.com/trevyn/animal-time/releases/latest/download/animal-time
- run: chmod +x animal-time
- run: ./animal-time > build_id
- run: cat build_id

- uses: actions/upload-artifact@v4
with:
name: build_id
path: build_id

build-windows:
needs: [assign]
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- run: rustup default stable && rustup update stable
- run: cargo build --release --lib
working-directory: "deckbuilder"

publish:
needs: [build-windows]
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}

Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Godot 4+ specific ignores
.godot/
android/
.vscode/
addons/
Cargo.lock
steam_appid.txt
*/res/media/
*/res/media/
target
17 changes: 17 additions & 0 deletions deckbuilder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[package]
name = "deckbuilder"
version = "0.1.0"
edition = "2021"

[lib]
name = "deckbuilder"
path = "src/lib.rs"
crate-type = ["cdylib", "rlib"]

[[bin]]
name = "deckbuilder_cli"
path = "src/main.rs"

[dependencies]
rand = "0.8"
godot = { git = "https://github.com/godot-rust/gdext", branch = "master" }
Loading

0 comments on commit d4398df

Please sign in to comment.