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