Skip to content

Commit

Permalink
Create CI/CD workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
RedMser committed May 5, 2024
1 parent ff6532d commit 9496834
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Compile

on:
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
compile-windows:
name: Windows [Forked]
runs-on: windows-latest
env:
GODOT4_BIN: '$GITHUB_WORKSPACE/build/FORKED_godot.windows.editor.x86_64.exe'
steps:
- uses: actions/checkout@v4
- uses: robinraju/release-downloader@v1.10
name: Download Forked Godot
with:
latest: true
fileName: 'FORKED_godot.windows.editor.x86_64.exe'
out-file-path: ./build
- name: Build
working-directory: ./rust
run: cargo build --features forked-godot
- uses: actions/upload-artifact@v4
with:
path: rust/target/debug/godot_fluent_translation.dll
compile-linux:
name: Linux [Default]
runs-on: ubuntu-latest
env:
GODOT4_BIN: '$GITHUB_WORKSPACE/build/Godot_v4.3-dev6_linux.x86_64'
steps:
- uses: actions/checkout@v4
- uses: robinraju/release-downloader@v1.10
name: Download Latest Godot
with:
repository: 'godotengine/godot-builds'
fileName: 'Godot_v4.3-dev6_linux.x86_64.zip'
tag: '4.3-dev6'
extract: true
out-file-path: ./build
- name: Make downloaded file executable
run: chmod +x ./build/Godot_v4.3-dev6_linux.x86_64
- name: Build
working-directory: ./rust
run: cargo build --features custom-godot
- uses: actions/upload-artifact@v4
with:
path: rust/target/debug/libgodot_fluent_translation.so

0 comments on commit 9496834

Please sign in to comment.