BlueGit

timfa posprint

CI: artifact-paden, CI_PROJECT_DIR en windres voor BlueGit

timfa Ada · pushed by timfa

Authored 2026-10-27 · 3 weeks ago

Hash
fee0e1988e95bbfb0340a769697457b6b6c8dff0
Parent
466abf40
Pipeline
Passed
1 file changed +6 −2
blue-ci-cd.yml +6 −2
@@ -81,7 +81,7 @@ build:linux-deb:
81 81 - mkdir -p dist
82 82 - cp target/debian/*.deb dist/
83 83 artifacts:
84 paths: [dist/*.deb]
84 paths: [dist/]
85 85 expire_in: 30d
86 86
87 87 build:linux-arch:
@@ -91,6 +91,8 @@ build:linux-arch:
91 91 timeout: 2h
92 92 needs: [version, test]
93 93 script:
94 # BlueGit sets no CI_PROJECT_DIR; jobs start in the checkout.
95 - export CI_PROJECT_DIR="$PWD"
94 96 - pacman -Syu --noconfirm
95 97 - pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus wayland libx11 fontconfig freetype2 libglvnd git rsync
96 98 - bash scripts/ci/set-version.sh
@@ -114,7 +116,7 @@ build:linux-arch:
114 116 bash "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" "${mains[0]}" "$out" "$PKGVER"
115 117 test -s "$out"
116 118 artifacts:
117 paths: [dist/*.pkg.tar.zst, dist/posprint-*-x86_64.tar.gz]
119 paths: [dist/]
118 120 expire_in: 30d
119 121
120 122 # Cross-compiled with MinGW (no Windows runner on BlueGit).
@@ -131,6 +133,8 @@ build:windows:
131 133 - apt-get update -qq
132 134 - apt-get install -y -qq gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
133 135 - rustup target add x86_64-pc-windows-gnu
136 # winres calls plain `windres`; use the MinGW one.
137 - ln -sf /usr/bin/x86_64-w64-mingw32-windres /usr/local/bin/windres
134 138 script:
135 139 - bash scripts/ci/set-version.sh
136 140 - cargo build --release --locked --target x86_64-pc-windows-gnu
@@ -81,7 +81,7 @@ build:linux-deb:
81 - mkdir -p dist
81 - mkdir -p dist
82 - cp target/debian/*.deb dist/
82 - cp target/debian/*.deb dist/
83 artifacts:
83 artifacts:
84 paths: [dist/*.deb]
84 paths: [dist/]
85 expire_in: 30d
85 expire_in: 30d
86
86
87build:linux-arch:
87build:linux-arch:
@@ -91,6 +91,8 @@ build:linux-arch:
91 timeout: 2h
91 timeout: 2h
92 needs: [version, test]
92 needs: [version, test]
93 script:
93 script:
94 # BlueGit sets no CI_PROJECT_DIR; jobs start in the checkout.
95 - export CI_PROJECT_DIR="$PWD"
94 - pacman -Syu --noconfirm
96 - pacman -Syu --noconfirm
95 - pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus wayland libx11 fontconfig freetype2 libglvnd git rsync
97 - pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus wayland libx11 fontconfig freetype2 libglvnd git rsync
96 - bash scripts/ci/set-version.sh
98 - bash scripts/ci/set-version.sh
@@ -114,7 +116,7 @@ build:linux-arch:
114 bash "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" "${mains[0]}" "$out" "$PKGVER"
116 bash "$CI_PROJECT_DIR/scripts/make-linux-bin-tarball.sh" "${mains[0]}" "$out" "$PKGVER"
115 test -s "$out"
117 test -s "$out"
116 artifacts:
118 artifacts:
117 paths: [dist/*.pkg.tar.zst, dist/posprint-*-x86_64.tar.gz]
119 paths: [dist/]
118 expire_in: 30d
120 expire_in: 30d
119
121
120# Cross-compiled with MinGW (no Windows runner on BlueGit).
122# Cross-compiled with MinGW (no Windows runner on BlueGit).
@@ -131,6 +133,8 @@ build:windows:
131 - apt-get update -qq
133 - apt-get update -qq
132 - apt-get install -y -qq gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
134 - apt-get install -y -qq gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64
133 - rustup target add x86_64-pc-windows-gnu
135 - rustup target add x86_64-pc-windows-gnu
136 # winres calls plain `windres`; use the MinGW one.
137 - ln -sf /usr/bin/x86_64-w64-mingw32-windres /usr/local/bin/windres
134 script:
138 script:
135 - bash scripts/ci/set-version.sh
139 - bash scripts/ci/set-version.sh
136 - cargo build --release --locked --target x86_64-pc-windows-gnu
140 - cargo build --release --locked --target x86_64-pc-windows-gnu