Skip to content

Commit 3b67a2e

Browse files
committed
feature: action build uploads
1 parent bb11f45 commit 3b67a2e

11 files changed

Lines changed: 27 additions & 20 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ jobs:
4040
- name: Build test
4141
run: nimble build -Y
4242

43+
- name: Upload builds
44+
uses: actions/upload-artifact@v4
45+
name: build-artifacts-${{ matrix.os }}
46+
with: |
47+
webfisher
48+
webfisher.exe
49+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
**/result
22

33
*.out
4-
# *.exe
4+
*.exe
55

66
*.ppm
77

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
];
3030
shellHook = ''
3131
nim_lk | jq --sort-keys > lock.json
32-
nimble install -d > /dev/null &
32+
nimble install -d > /dev/null
3333
alias editor="lite-xl $PWD &"
3434
alias nr="nix run"
3535
'';

lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"packages": [
66
"libevdev"
77
],
8-
"path": "/nix/store/wws203f5w5cj6x78alhjxyj7pwxiypi0-source",
9-
"rev": "a191a1b1618e85374e892e40330356fce9886eed",
10-
"sha256": "00xbanpkdzs977f4j7vrqi3wpfzblvakylnaqcri86iwwahcmlgn",
8+
"path": "/nix/store/hvy91ipp9p9az57nc2i25q6ws8w8a15n-source",
9+
"rev": "4d9b3581df1b95ffc400ae965958039e0687f1d0",
10+
"sha256": "18nlr740jzb1s0hc3ggzgm79l6989s5i7y00vib9fri7z2hc2ra9",
1111
"srcDir": "",
12-
"url": "https://github.com/PassiveLemon/libevdev-nim/archive/a191a1b1618e85374e892e40330356fce9886eed.tar.gz"
12+
"url": "https://github.com/PassiveLemon/libevdev-nim/archive/4d9b3581df1b95ffc400ae965958039e0687f1d0.tar.gz"
1313
},
1414
{
1515
"method": "fetchzip",

src/webfisher.exe

-834 KB
Binary file not shown.

src/webfisher/cli.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import
66
]
77

88
import
9-
./constants
9+
constants
1010

1111

1212
type

src/webfisher/config.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import
66
]
77

88
import
9-
./cli,
10-
./logging
9+
cli,
10+
logging
1111

1212

1313
type

src/webfisher/input.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
when defined(linux):
2-
import ./linux/input
2+
import linux/input
33
export input
44

55
when defined(windows):
6-
import ./windows/input
6+
import windows/input
77
export input
88

src/webfisher/screen.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
when defined(linux):
2-
import ./linux/screen
2+
import linux/screen
33
export screen
44

55
when defined(windows):
6-
import ./windows/screen
6+
import windows/screen
77
export screen
88

src/webfisher/task.nim

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ import
22
std/os
33

44
import
5-
./constants,
6-
./input,
7-
./logging,
8-
./screen
5+
constants,
6+
input,
7+
logging,
8+
screen
99

10-
from ./config import globalConfig
10+
from config import globalConfig
1111

1212

1313
proc cleanup() {.noconv.} =
@@ -70,7 +70,7 @@ proc doFish*(): void =
7070
if globalConfig.holdToFish:
7171
while getFishingGame():
7272
pressMouse()
73-
sleep(animationMenuDelay)
73+
sleep(uinputTime)
7474
releaseMouse()
7575
else:
7676
while getFishingGame():

0 commit comments

Comments
 (0)