Commit bf2f43b58e

bf2f43b58efa19e2fe89433bd2972c13ff3efdc3

parent: 9cdf8e477d

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-26 18:11 UTC

Temp: Debugging

Layout: unified · split

.github/workflows/ci-cd.yml +28 −28
@@ -24,34 +24,34 @@ jobs:
2424 - name: Install Dependencies
2525 run: go mod tidy # Install Go dependencies
2626
27 - name: Comment go-winio for Linux Build
28 run: |
29 echo 'function toggle_winio_import() {
30 local action="$1"
31 local file="internal/player.go"
27 # - name: Comment go-winio for Linux Build
28 # run: |
29 # echo 'function toggle_winio_import() {
30 # local action="$1"
31 # local file="internal/player.go"
3232
33 if [ "$action" == "comment" ]; then
34 sed -i "s|^\\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|// \\1|" "$file"
35 sed -i "s|^\\(.*conn, err = winio.DialPipe.*\\)|// \\1|" "$file"
36 elif [ "$action" == "uncomment" ]; then
37 sed -i "s|// \\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|\\1|" "$file"
38 sed -i "s|^// \\(.*conn, err = winio.DialPipe.*\\)|\\1|" "$file"
39 fi
40 }
41 toggle_winio_import comment' > toggle_winio_import.sh
42
43 - name: Execute Commenting Function for Linux Build # Comment out lines before Linux build
44 run: |
45 bash toggle_winio_import.sh
46
47 - name: Build Linux binary
48 run: |
49 chmod +x Build/buildlinux
50 ./Build/buildlinux
51
52 - name: Revert Changes in player.go
53 run: |
54 git checkout -- internal/player.go
33 # if [ "$action" == "comment" ]; then
34 # sed -i "s|^\\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|// \\1|" "$file"
35 # sed -i "s|^\\(.*conn, err = winio.DialPipe.*\\)|// \\1|" "$file"
36 # elif [ "$action" == "uncomment" ]; then
37 # sed -i "s|// \\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|\\1|" "$file"
38 # sed -i "s|^// \\(.*conn, err = winio.DialPipe.*\\)|\\1|" "$file"
39 # fi
40 # }
41 # toggle_winio_import comment' > toggle_winio_import.sh
42
43 # - name: Execute Commenting Function for Linux Build # Comment out lines before Linux build
44 # run: |
45 # bash toggle_winio_import.sh
46
47 # - name: Build Linux binary
48 # run: |
49 # chmod +x Build/buildlinux
50 # ./Build/buildlinux
51
52 # - name: Revert Changes in player.go
53 # run: |
54 # git checkout -- internal/player.go
5555
5656 - name: Build Windows binary
5757 run: |
@@ -77,7 +77,7 @@ jobs:
7777 Remove-Item "is.exe"
7878
7979 - name: List Build Directory
80 run: dir Build
80 run: dir
8181
8282 - name: Create Windows Installer
8383 run: |