feat: menambahkan algoritma gcd #8
Workflow file for this run
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 workflows | ||
on: | ||
pull_request: | ||
branches: [main] | ||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
steps: | ||
- name: checkout Kode | ||
uses: actions/checkout@v3 | ||
- name: setup zig | ||
uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: 0.11.0 | ||
cache: false | ||
- name: format kode zig | ||
run: zig fmt . | ||
- name: testing kode zig | ||
if: (startsWith(matrix.runs-on, 'ubuntu')) || (startsWith(matrix.runs-on, 'macos')) | ||
run: sh runtest.sh | ||
- name: testing kode zig di windows | ||
if: (startsWith(matrix.runs-on, 'windows') | ||
Check failure on line 34 in .github/workflows/zig.yml GitHub Actions / Zig workflowsInvalid workflow file
|
||
run: ./runtest.cmd | ||
linting-kode-zig: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: goto-bus-stop/setup-zig@v2 | ||
with: | ||
version: 0.11.0 | ||
cache: false | ||
- run: zig fmt --check --ast-check . |