.github/workflows: fix indentations (#470)
- commit
- 80e859bc9405e1c30d0023296f15c72dda3b37bc
- author
- Hajime Hoshi · · 2026-06-23 09:30 UTC
- committer
- GitHub · · 2026-06-23 09:30 UTC
- parent
- 3c86956
- signature
- GPG Unverified
B5690EEEBB952194The key is unknown
1 file · +36 -36
M .github/workflows/test.yml +36 -36
| @@ -132,46 +132,46 @@ jobs: | |||
| 132 | 132 | - name: go test (Linux 386) | |
| 133 | 133 | if: ${{ runner.os == 'Linux' && runner.arch != 'ARM64' }} | |
| 134 | 134 | run: | | |
| 135 | - | sudo apt-get update | |
| 136 | - | sudo apt-get install gcc-multilib | |
| 137 | - | sudo apt-get install g++-multilib | |
| 138 | - | env CGO_ENABLED=0 GOARCH=386 go test -shuffle=on -v -count=10 ./... | |
| 139 | - | env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v -count=10 ./... | |
| 135 | + | sudo apt-get update | |
| 136 | + | sudo apt-get install gcc-multilib | |
| 137 | + | sudo apt-get install g++-multilib | |
| 138 | + | env CGO_ENABLED=0 GOARCH=386 go test -shuffle=on -v -count=10 ./... | |
| 139 | + | env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v -count=10 ./... | |
| 140 | 140 | ||
| 141 | 141 | - name: go test (Linux arm) | |
| 142 | 142 | if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' }} | |
| 143 | 143 | run: | | |
| 144 | - | sudo apt-get update | |
| 145 | - | sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-armhf-cross | |
| 146 | - | ||
| 147 | - | # Install the latest QEMU 10.x package from Debian. Ubuntu 24.04 ships QEMU 8.2 | |
| 148 | - | # which has a bug where inter-thread signal delivery (tgkill) hangs, | |
| 149 | - | # causing TestSetuidEtc to deadlock. | |
| 150 | - | arch=$(dpkg --print-architecture) | |
| 151 | - | qemu_user_deb=$( | |
| 152 | - | curl -fsSL https://ftp.debian.org/debian/pool/main/q/qemu/ | | |
| 153 | - | grep -Eo "qemu-user_${QEMU_MAJOR_VERSION}\.[0-9.]+\+ds-[0-9]+([+~][A-Za-z0-9.+:~-]+)*_${arch}\.deb" | | |
| 154 | - | sort -V | | |
| 155 | - | tail -n 1 | |
| 156 | - | ) | |
| 157 | - | if [ -z "${qemu_user_deb}" ]; then | |
| 158 | - | echo "missing qemu-user ${QEMU_MAJOR_VERSION}.x package for ${arch}" >&2 | |
| 159 | - | exit 1 | |
| 160 | - | fi | |
| 161 | - | wget -q "https://ftp.debian.org/debian/pool/main/q/qemu/${qemu_user_deb}" -O /tmp/qemu-user.deb | |
| 162 | - | sudo dpkg --force-depends -i /tmp/qemu-user.deb | |
| 163 | - | sudo apt-get -f install -y | |
| 164 | - | ||
| 165 | - | # Create symlink for the dynamic linker that QEMU expects | |
| 166 | - | sudo ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 | |
| 167 | - | go env -w CC=arm-linux-gnueabihf-gcc | |
| 168 | - | go env -w CXX=arm-linux-gnueabihf-g++ | |
| 169 | - | env GOOS=linux GOARCH=arm CGO_ENABLED=0 go test -c -o=purego-test-nocgo . | |
| 170 | - | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-nocgo -test.shuffle=on -test.v -test.count=10 | |
| 171 | - | env GOOS=linux GOARCH=arm CGO_ENABLED=1 go test -c -o=purego-test-cgo . | |
| 172 | - | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-cgo -test.shuffle=on -test.v -test.count=10 | |
| 173 | - | go env -u CC | |
| 174 | - | go env -u CXX | |
| 144 | + | sudo apt-get update | |
| 145 | + | sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-armhf-cross | |
| 146 | + | ||
| 147 | + | # Install the latest QEMU 10.x package from Debian. Ubuntu 24.04 ships QEMU 8.2 | |
| 148 | + | # which has a bug where inter-thread signal delivery (tgkill) hangs, | |
| 149 | + | # causing TestSetuidEtc to deadlock. | |
| 150 | + | arch=$(dpkg --print-architecture) | |
| 151 | + | qemu_user_deb=$( | |
| 152 | + | curl -fsSL https://ftp.debian.org/debian/pool/main/q/qemu/ | | |
| 153 | + | grep -Eo "qemu-user_${QEMU_MAJOR_VERSION}\.[0-9.]+\+ds-[0-9]+([+~][A-Za-z0-9.+:~-]+)*_${arch}\.deb" | | |
| 154 | + | sort -V | | |
| 155 | + | tail -n 1 | |
| 156 | + | ) | |
| 157 | + | if [ -z "${qemu_user_deb}" ]; then | |
| 158 | + | echo "missing qemu-user ${QEMU_MAJOR_VERSION}.x package for ${arch}" >&2 | |
| 159 | + | exit 1 | |
| 160 | + | fi | |
| 161 | + | wget -q "https://ftp.debian.org/debian/pool/main/q/qemu/${qemu_user_deb}" -O /tmp/qemu-user.deb | |
| 162 | + | sudo dpkg --force-depends -i /tmp/qemu-user.deb | |
| 163 | + | sudo apt-get -f install -y | |
| 164 | + | ||
| 165 | + | # Create symlink for the dynamic linker that QEMU expects | |
| 166 | + | sudo ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 | |
| 167 | + | go env -w CC=arm-linux-gnueabihf-gcc | |
| 168 | + | go env -w CXX=arm-linux-gnueabihf-g++ | |
| 169 | + | env GOOS=linux GOARCH=arm CGO_ENABLED=0 go test -c -o=purego-test-nocgo . | |
| 170 | + | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-nocgo -test.shuffle=on -test.v -test.count=10 | |
| 171 | + | env GOOS=linux GOARCH=arm CGO_ENABLED=1 go test -c -o=purego-test-cgo . | |
| 172 | + | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-cgo -test.shuffle=on -test.v -test.count=10 | |
| 173 | + | go env -u CC | |
| 174 | + | go env -u CXX | |
| 175 | 175 | ||
| 176 | 176 | - name: go test race (no Cgo) | |
| 177 | 177 | if: runner.os == 'macOS' | |
| @@ -132,46 +132,46 @@ jobs: | |||||
| 132 | - name: go test (Linux 386) | 132 | - name: go test (Linux 386) | ||
| 133 | if: ${{ runner.os == 'Linux' && runner.arch != 'ARM64' }} | 133 | if: ${{ runner.os == 'Linux' && runner.arch != 'ARM64' }} | ||
| 134 | run: | | 134 | run: | | ||
| 135 | - | sudo apt-get update | 135 | + | sudo apt-get update |
| 136 | - | sudo apt-get install gcc-multilib | 136 | + | sudo apt-get install gcc-multilib |
| 137 | - | sudo apt-get install g++-multilib | 137 | + | sudo apt-get install g++-multilib |
| 138 | - | env CGO_ENABLED=0 GOARCH=386 go test -shuffle=on -v -count=10 ./... | 138 | + | env CGO_ENABLED=0 GOARCH=386 go test -shuffle=on -v -count=10 ./... |
| 139 | - | env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v -count=10 ./... | 139 | + | env CGO_ENABLED=1 GOARCH=386 go test -shuffle=on -v -count=10 ./... |
| 140 | 140 | ||||
| 141 | - name: go test (Linux arm) | 141 | - name: go test (Linux arm) | ||
| 142 | if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' }} | 142 | if: ${{ runner.os == 'Linux' && runner.arch == 'ARM64' }} | ||
| 143 | run: | | 143 | run: | | ||
| 144 | - | sudo apt-get update | 144 | + | sudo apt-get update |
| 145 | - | sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-armhf-cross | 145 | + | sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf libc6-armhf-cross |
| 146 | - | 146 | + | ||
| 147 | - | # Install the latest QEMU 10.x package from Debian. Ubuntu 24.04 ships QEMU 8.2 | 147 | + | # Install the latest QEMU 10.x package from Debian. Ubuntu 24.04 ships QEMU 8.2 |
| 148 | - | # which has a bug where inter-thread signal delivery (tgkill) hangs, | 148 | + | # which has a bug where inter-thread signal delivery (tgkill) hangs, |
| 149 | - | # causing TestSetuidEtc to deadlock. | 149 | + | # causing TestSetuidEtc to deadlock. |
| 150 | - | arch=$(dpkg --print-architecture) | 150 | + | arch=$(dpkg --print-architecture) |
| 151 | - | qemu_user_deb=$( | 151 | + | qemu_user_deb=$( |
| 152 | - | curl -fsSL https://ftp.debian.org/debian/pool/main/q/qemu/ | | 152 | + | curl -fsSL https://ftp.debian.org/debian/pool/main/q/qemu/ | |
| 153 | - | grep -Eo "qemu-user_${QEMU_MAJOR_VERSION}\.[0-9.]+\+ds-[0-9]+([+~][A-Za-z0-9.+:~-]+)*_${arch}\.deb" | | 153 | + | grep -Eo "qemu-user_${QEMU_MAJOR_VERSION}\.[0-9.]+\+ds-[0-9]+([+~][A-Za-z0-9.+:~-]+)*_${arch}\.deb" | |
| 154 | - | sort -V | | 154 | + | sort -V | |
| 155 | - | tail -n 1 | 155 | + | tail -n 1 |
| 156 | - | ) | 156 | + | ) |
| 157 | - | if [ -z "${qemu_user_deb}" ]; then | 157 | + | if [ -z "${qemu_user_deb}" ]; then |
| 158 | - | echo "missing qemu-user ${QEMU_MAJOR_VERSION}.x package for ${arch}" >&2 | 158 | + | echo "missing qemu-user ${QEMU_MAJOR_VERSION}.x package for ${arch}" >&2 |
| 159 | - | exit 1 | 159 | + | exit 1 |
| 160 | - | fi | 160 | + | fi |
| 161 | - | wget -q "https://ftp.debian.org/debian/pool/main/q/qemu/${qemu_user_deb}" -O /tmp/qemu-user.deb | 161 | + | wget -q "https://ftp.debian.org/debian/pool/main/q/qemu/${qemu_user_deb}" -O /tmp/qemu-user.deb |
| 162 | - | sudo dpkg --force-depends -i /tmp/qemu-user.deb | 162 | + | sudo dpkg --force-depends -i /tmp/qemu-user.deb |
| 163 | - | sudo apt-get -f install -y | 163 | + | sudo apt-get -f install -y |
| 164 | - | 164 | + | ||
| 165 | - | # Create symlink for the dynamic linker that QEMU expects | 165 | + | # Create symlink for the dynamic linker that QEMU expects |
| 166 | - | sudo ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 | 166 | + | sudo ln -sf /usr/arm-linux-gnueabihf/lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3 |
| 167 | - | go env -w CC=arm-linux-gnueabihf-gcc | 167 | + | go env -w CC=arm-linux-gnueabihf-gcc |
| 168 | - | go env -w CXX=arm-linux-gnueabihf-g++ | 168 | + | go env -w CXX=arm-linux-gnueabihf-g++ |
| 169 | - | env GOOS=linux GOARCH=arm CGO_ENABLED=0 go test -c -o=purego-test-nocgo . | 169 | + | env GOOS=linux GOARCH=arm CGO_ENABLED=0 go test -c -o=purego-test-nocgo . |
| 170 | - | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-nocgo -test.shuffle=on -test.v -test.count=10 | 170 | + | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-nocgo -test.shuffle=on -test.v -test.count=10 |
| 171 | - | env GOOS=linux GOARCH=arm CGO_ENABLED=1 go test -c -o=purego-test-cgo . | 171 | + | env GOOS=linux GOARCH=arm CGO_ENABLED=1 go test -c -o=purego-test-cgo . |
| 172 | - | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-cgo -test.shuffle=on -test.v -test.count=10 | 172 | + | env QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf qemu-arm ./purego-test-cgo -test.shuffle=on -test.v -test.count=10 |
| 173 | - | go env -u CC | 173 | + | go env -u CC |
| 174 | - | go env -u CXX | 174 | + | go env -u CXX |
| 175 | 175 | ||||
| 176 | - name: go test race (no Cgo) | 176 | - name: go test race (no Cgo) | ||
| 177 | if: runner.os == 'macOS' | 177 | if: runner.os == 'macOS' | ||