--- image: "archlinux" packages: - "cmake" - "pkgconf" - "go" - "dep" - "mingw-w64-gcc" - "mingw-w64-cairo-bootstrap" - "mingw-w64-freetype2-bootstrap" - "mingw-w64-gtk3" - "git" sources: - "https://git.saucisseroyale.cc/S06R/irdille-client-2.git" secrets: - "63d7a0ac-2635-4d42-9709-efcd2cf74858" tasks: - setup: "cd irdille-client-2\ngit checkout -q $GIT_COMMIT_ID\nmkdir -p ../go/src/git.saucisseroyale.cc/S06R/\n\ ln -s $(pwd) ../go/src/git.saucisseroyale.cc/S06R/irdille-client-2\ncd ../go/src/git.saucisseroyale.cc/S06R/irdille-client-2\n\ PKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig\nCGO_ENABLED=1\nCC=x86_64-w64-mingw32-cc\n\ GOOS=windows\nGOARCH=amd64\nCGO_LDFLAGS_ALLOW=.*\ndep ensure -vendor-only\ngo\ \ get github.com/rakyll/statik\n" - build: "PATH=\"$PATH:$(pwd)/go/bin\"\ncd go/src/git.saucisseroyale.cc/S06R/irdille-client-2\n\ go generate main.go\nPKG_CONFIG_PATH=/usr/x86_64-w64-mingw32/lib/pkgconfig\nCGO_ENABLED=1\n\ CC=x86_64-w64-mingw32-cc\nGOOS=windows\nGOARCH=amd64\nCGO_LDFLAGS_ALLOW=.*\ngo\ \ build -ldflags -H=windowsgui -o irdille.exe main.go\n" - deploy: "cd go/src/git.saucisseroyale.cc/S06R/irdille-client-2\nscp -o StrictHostKeyChecking=no\ \ -q irdille.exe user@delthas.fr:/srv/http/blog/irdille.exe\n" environment: GIT_COMMIT_ID: "3442af6665e29220fe8549d57ea3ecf76d301dcc"