Skip to content

Deno compile workflow not running #88

@MBeggiato

Description

@MBeggiato

Hi,
I want to use Github Actions with Deno 2 to automaticaly compile to a executable. I got the workflow setup but now recive the
following error in the compile step:

Run deno compile --allow-write --allow-read --target x86_64-pc-windows-msvc --icon ./icon.ico --output ./build/windows/ConventionalFighter.exe main.ts

Download https://registry.npmjs.org/keypress
Check file:///D:/a/ConventionalFighter/ConventionalFighter/main.ts
Compile file:///D:/a/ConventionalFighter/ConventionalFighter/main.ts to ./build/windows/ConventionalFighter.exe
Download https://dl.deno.land/release/v2.0.3/denort-x86_64-pc-windows-msvc.zip
error: Writing deno compile executable to temporary file './build/windows\ConventionalFighter.exe.tmp-0b65dea24cd6b2cb'
Caused by:
The system cannot find the file specified. (os error 2)
Error: Process completed with exit code 1.

My workflow steps looks like this:

  build:
    runs-on: windows-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Setup Deno
        uses: denoland/setup-deno@v2.0.0

      - name: Build for Windows
        run: deno compile --allow-write --allow-read --target x86_64-pc-windows-msvc --icon ./icon.ico --output ./build/windows/ConventionalFighter.exe main.ts

      - name: Upload build artifact
        uses: actions/upload-artifact@v3
        with:
          name: ConventionalFighter-Windows
          path: ./build/windows/ConventionalFighter.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions