Skip to content

Commit

Permalink
Small fix to the build tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Patitotective committed Jan 10, 2024
1 parent 23ab073 commit d61b9dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
run: sudo apt install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl-dev

- name: Build
run: |
nimble buildapp
run: nimble buildapp

- name: Upload Artifacts
uses: actions/upload-artifact@v3
Expand Down
2 changes: 2 additions & 0 deletions ImExample.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ let flags = getEnv("FLAGS")
let args = &"--app:gui --out:{outPath} --cpu:{arch} {flags}"

task buildr, "Build the application for release":
exec "nimble install -d -y" # We do this so you can run this task without having any dependencies installed and still work
exec &"nimble c -d:release {args} main.nim"

const desktopTemplate = """
Expand All @@ -52,6 +53,7 @@ task buildapp, "Build the AppImage":

# Compile applicaiton executable
if not dirExists("AppDir"): mkDir("AppDir")
exec "nimble install -d -y" # We do this so you can run this task without having any dependencies installed and still work
exec &"nimble c -d:release -d:appimage {args} --out:AppDir/AppRun main.nim"

# Make desktop file
Expand Down

0 comments on commit d61b9dd

Please sign in to comment.