Skip to content

Commit

Permalink
Temp: Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Wraient committed Oct 26, 2024
1 parent 9cdf8e4 commit bf2f43b
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,34 @@ jobs:
- name: Install Dependencies
run: go mod tidy # Install Go dependencies

- name: Comment go-winio for Linux Build
run: |
echo 'function toggle_winio_import() {
local action="$1"
local file="internal/player.go"
# - name: Comment go-winio for Linux Build
# run: |
# echo 'function toggle_winio_import() {
# local action="$1"
# local file="internal/player.go"

if [ "$action" == "comment" ]; then
sed -i "s|^\\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|// \\1|" "$file"
sed -i "s|^\\(.*conn, err = winio.DialPipe.*\\)|// \\1|" "$file"
elif [ "$action" == "uncomment" ]; then
sed -i "s|// \\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|\\1|" "$file"
sed -i "s|^// \\(.*conn, err = winio.DialPipe.*\\)|\\1|" "$file"
fi
}
toggle_winio_import comment' > toggle_winio_import.sh
- name: Execute Commenting Function for Linux Build # Comment out lines before Linux build
run: |
bash toggle_winio_import.sh
- name: Build Linux binary
run: |
chmod +x Build/buildlinux
./Build/buildlinux
- name: Revert Changes in player.go
run: |
git checkout -- internal/player.go
# if [ "$action" == "comment" ]; then
# sed -i "s|^\\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|// \\1|" "$file"
# sed -i "s|^\\(.*conn, err = winio.DialPipe.*\\)|// \\1|" "$file"
# elif [ "$action" == "uncomment" ]; then
# sed -i "s|// \\(\\s*\\\"github.com/Microsoft/go-winio\\\"\\)|\\1|" "$file"
# sed -i "s|^// \\(.*conn, err = winio.DialPipe.*\\)|\\1|" "$file"
# fi
# }
# toggle_winio_import comment' > toggle_winio_import.sh

# - name: Execute Commenting Function for Linux Build # Comment out lines before Linux build
# run: |
# bash toggle_winio_import.sh

# - name: Build Linux binary
# run: |
# chmod +x Build/buildlinux
# ./Build/buildlinux

# - name: Revert Changes in player.go
# run: |
# git checkout -- internal/player.go

- name: Build Windows binary
run: |
Expand All @@ -77,7 +77,7 @@ jobs:
Remove-Item "is.exe"
- name: List Build Directory
run: dir Build
run: dir

- name: Create Windows Installer
run: |
Expand Down

0 comments on commit bf2f43b

Please sign in to comment.