CI: artifact-paden, CI_PROJECT_DIR en windres voor BlueGit
@@ -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 dist81
- mkdir -p dist82
- 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: 30d85
expire_in: 30d86
86
87
build:linux-arch:87
build:linux-arch:@@ -91,6 +91,8 @@ build:linux-arch:91
timeout: 2h91
timeout: 2h92
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 --noconfirm96
- pacman -Syu --noconfirm95
- pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus wayland libx11 fontconfig freetype2 libglvnd git rsync97
- pacman -S --noconfirm --needed rust pkgconf openssl libxkbcommon libxcb dbus wayland libx11 fontconfig freetype2 libglvnd git rsync96
- bash scripts/ci/set-version.sh98
- 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: 30d120
expire_in: 30d119
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 -qq133
- apt-get update -qq132
- apt-get install -y -qq gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64134
- apt-get install -y -qq gcc-mingw-w64-x86-64 binutils-mingw-w64-x86-64133
- rustup target add x86_64-pc-windows-gnu135
- rustup target add x86_64-pc-windows-gnu136
# winres calls plain `windres`; use the MinGW one.137
- ln -sf /usr/bin/x86_64-w64-mingw32-windres /usr/local/bin/windres134
script:138
script:135
- bash scripts/ci/set-version.sh139
- bash scripts/ci/set-version.sh136
- cargo build --release --locked --target x86_64-pc-windows-gnu140
- cargo build --release --locked --target x86_64-pc-windows-gnu