Skip to content

Commit

Permalink
[Quality] Organize haskell-related files (#34)
Browse files Browse the repository at this point in the history
* organize haskell related files

* fix workflow
  • Loading branch information
logic-finder authored Jun 18, 2024
1 parent 56744e2 commit 04fa66d
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 4 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/pr_haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ jobs:
working-directory: ./test
steps:
- name: Build object program
run: ghc buntang.hs
run: ghc btn.hs
working-directory: ./btn/haskell
- name: Build host program
run: ./test_maker .test/btn.test
- name: Run test
run: ./test ../btn/haskell/buntang
run: ./test ../btn/haskell/btn
timeout-minutes: 5

test-hd:
Expand All @@ -50,3 +50,20 @@ jobs:
- name: Run test
run: ./test ../hd/haskell/hd
timeout-minutes: 5

test-nsy:
name: Run noisy test
runs-on: self-hosted
needs: prepare
defaults:
run:
working-directory: ./test
steps:
- name: Build object program
run: ghc nsy.hs
working-directory: ./nsy/haskell
- name: Build host program
run: ./test_maker .test/nsy.test
- name: Run test
run: ./test ../nsy/haskell/nsy
timeout-minutes: 5
13 changes: 11 additions & 2 deletions .github/workflows/push_haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
run: gcc -o test_maker test_maker.c

- name: Build object program
run: ghc buntang.hs
run: ghc btn.hs
working-directory: ./btn/haskell
- name: Build host program
run: ./test_maker .test/btn.test
- name: Run test
run: ./test ../btn/haskell/buntang
run: ./test ../btn/haskell/btn
timeout-minutes: 5

- name: Build object program
Expand All @@ -34,3 +34,12 @@ jobs:
- name: Run test
run: ./test ../hd/haskell/hd
timeout-minutes: 5

- name: Build object program
run: ghc nsy.hs
working-directory: ./nsy/haskell
- name: Build host program
run: ./test_maker .test/nsy.test
- name: Run test
run: ./test ../nsy/haskell/nsy
timeout-minutes: 5
3 changes: 3 additions & 0 deletions btn/haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
btn
btn.hi
btn.o
File renamed without changes.
3 changes: 3 additions & 0 deletions hd/haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hd
hd.hi
hd.o
3 changes: 3 additions & 0 deletions hhss/haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hhss
hhss.hi
hhss.o
File renamed without changes.
3 changes: 3 additions & 0 deletions nsy/haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nsy
nsy.hi
nsy.o
File renamed without changes.
3 changes: 3 additions & 0 deletions yandere/haskell/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
yandere
yandere.hi
yandere.o

0 comments on commit 04fa66d

Please sign in to comment.