Update gitignore to include Discord RPC binaries. #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Zig Test | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- zig/** | |
env: | |
ZIG_VERSION: 0.13.0 | |
jobs: | |
godot_zig: | |
container: | |
image: barichello/godot-ci:4.3 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] #, macos-latest, windows-latest] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
lfs: true | |
- name: Install Zig | |
run: | | |
apt-get update | |
apt-get upgrade -y | |
apt-get install xz-utils -y | |
mkdir -p ~/sdk/zig | |
mkdir -p /home/downloads | |
wget https://ziglang.org/download/${{env.ZIG_VERSION}}/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -O /home/downloads/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz | |
tar -xf /home/downloads/zig-linux-x86_64-${{env.ZIG_VERSION}}.tar.xz -C ~/sdk/zig | |
cp -r ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}}/* ~/sdk/zig | |
rm -rf ~/sdk/zig/zig-linux-x86_64-${{env.ZIG_VERSION}} | |
export PATH=$PATH:~/sdk/zig | |
echo "export PATH=$PATH:~/sdk/zig" >> ~/.bashrc | |
- name: Generate Godot Project | |
run: godot -e --path ../godot --import --headless | |
working-directory: ./zig | |
- name: Generate Zig Bindings | |
working-directory: ./zig | |
run: zig build bind | |
- name: Test | |
working-directory: ./zig | |
run: zig build test | |
- name: Lint | |
working-directory: ./zig | |
run: zig fmt --check . | |
- name: Build | |
working-directory: ./zig | |
run: zig build |