Skip to content

Try to fix a small issue with Windows #54

Try to fix a small issue with Windows

Try to fix a small issue with Windows #54

Workflow file for this run

name: CI
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
target:
[
x86_64-unknown-linux-gnu,
aarch64-unknown-linux-gnu,
x86_64-pc-windows-msvc,
x86_64-apple-darwin,
aarch64-apple-darwin,
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: denoland/setup-deno@v1
- uses: actions/cache@v4
with:
path: ~/.cache/deno/deps
key: ${{ runner.os }}-${{ hashFiles('deno.lock') }}
- run: BUILD_ARGS="--target ${{ matrix.target }}" deno task build
- run: tar -czf mtkruto-server-${{ matrix.os }}.tar.gz mtkruto-server*
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: mtkruto-server-${{ matrix.os }}.tar.gz
test:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
include:
- platform: ubuntu-latest
cache_path: ~/.cache/deno/deps
- platform: macos-latest
cache_path: ~/Library/Caches/deno/deps
- platform: windows-latest
cache_path: ~\AppData\Local\deno\deps
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: denoland/setup-deno@v1
- uses: actions/cache@v4
with:
path: ${{ matrix.cache_path }}
key: ${{ runner.os }}-${{ hashFiles('deno.lock') }}
- run: deno task test