mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Build binaries locked
This commit is contained in:
parent
dcbe433a9c
commit
4066b8511c
2 changed files with 14 additions and 5 deletions
13
.github/scripts/PKGBUILD.source
vendored
13
.github/scripts/PKGBUILD.source
vendored
|
|
@ -15,14 +15,23 @@ sha256sums=('$CI_SHA_SUM')
|
||||||
# lto causes linking errors when executed by this buildscript. besides, lto is already done by cargo itself (which doesn't cause linking errors)
|
# lto causes linking errors when executed by this buildscript. besides, lto is already done by cargo itself (which doesn't cause linking errors)
|
||||||
options=(!lto)
|
options=(!lto)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/${pkgname}-$pkgver"
|
||||||
|
|
||||||
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
export CARGO_HOME="$srcdir/cargo-home"
|
||||||
|
|
||||||
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/${pkgname}-$pkgver"
|
cd "$srcdir/${pkgname}-$pkgver"
|
||||||
|
|
||||||
export CARGO_HOME="$srcdir/cargo-home"
|
|
||||||
export RUSTUP_TOOLCHAIN=stable
|
export RUSTUP_TOOLCHAIN=stable
|
||||||
|
export CARGO_HOME="$srcdir/cargo-home"
|
||||||
|
|
||||||
export CRUNCHY_CLI_GIT_HASH=$CI_GIT_HASH
|
export CRUNCHY_CLI_GIT_HASH=$CI_GIT_HASH
|
||||||
cargo build --release
|
cargo build --frozen --release
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
|
|
|
||||||
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
run: cargo install --force cross
|
run: cargo install --force cross
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cross build --release --no-default-features --features openssl-tls-static --target ${{ matrix.toolchain }}
|
run: cross build --locked --release --no-default-features --features openssl-tls-static --target ${{ matrix.toolchain }}
|
||||||
|
|
||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
@ -101,7 +101,7 @@ jobs:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --target ${{ matrix.toolchain }}
|
run: cargo build --locked --release --target ${{ matrix.toolchain }}
|
||||||
|
|
||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
@ -135,7 +135,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: cargo build --release --target x86_64-pc-windows-gnu
|
run: cargo build --locked --release --target x86_64-pc-windows-gnu
|
||||||
|
|
||||||
- name: Upload binary artifact
|
- name: Upload binary artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue