chore(deps): update
All checks were successful
ci/woodpecker/push/mingw Pipeline was successful
ci/woodpecker/push/linux Pipeline was successful

This commit is contained in:
nyyu 2024-04-29 17:26:36 +02:00
parent 67e6570bd8
commit 90a48f8eec
3 changed files with 90 additions and 79 deletions

View file

@ -3,24 +3,26 @@ steps:
image: rust:alpine
pull: true
commands:
- apk add --no-cache musl-dev
- rustup component add clippy
- cargo test
- cargo clippy
- cargo build --release
- strip target/release/cggitem_sets
- apk add --no-cache musl-dev
- rustup component add clippy
- cargo test
- cargo clippy
- cargo build --release
- strip target/release/cggitem_sets
when:
path:
include: [ '.woodpecker/*.yml', 'src/*', 'Cargo*' ]
event: [ push, pull_request, manual, tag ]
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
event: [push, pull_request, manual, tag]
deploy:
image: alpine:latest
pull: true
commands:
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf -F maven2.asset1.classifier=linux-x64
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf -F maven2.asset1.classifier=linux-x64
secrets: [registry_username, registry_password]
when:
event: [ push, manual, tag ]
path:
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
event: [push, manual, tag]
branch:
- master
- master

View file

@ -3,27 +3,29 @@ steps:
image: rust:alpine
pull: true
commands:
- apk add --no-cache mingw-w64-gcc musl-dev
- mkdir ~/.cargo
- echo -e '[target.x86_64-pc-windows-gnu]\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-gcc-ar"' > ~/.cargo/config
- rustup target add x86_64-pc-windows-gnu
- rustup component add clippy
- cargo test
- cargo clippy --target x86_64-pc-windows-gnu
- cargo build --release --target x86_64-pc-windows-gnu
- strip target/x86_64-pc-windows-gnu/release/cggitem_sets.exe
- apk add --no-cache mingw-w64-gcc musl-dev
- mkdir ~/.cargo
- echo -e '[target.x86_64-pc-windows-gnu]\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-gcc-ar"' > ~/.cargo/config
- rustup target add x86_64-pc-windows-gnu
- rustup component add clippy
- cargo test
- cargo clippy --target x86_64-pc-windows-gnu
- cargo build --release --target x86_64-pc-windows-gnu
- strip target/x86_64-pc-windows-gnu/release/cggitem_sets.exe
when:
path:
include: [ '.woodpecker/*.yml', 'src/*', 'Cargo*' ]
event: [ push, pull_request, manual, tag ]
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
event: [push, pull_request, manual, tag]
deploy:
image: alpine:latest
pull: true
commands:
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/x86_64-pc-windows-gnu/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=mingw-x64
- apk add --no-cache curl
- curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) -F maven2.asset1=@target/x86_64-pc-windows-gnu/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=mingw-x64
secrets: [registry_username, registry_password]
when:
event: [ push, manual, tag ]
path:
include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
event: [push, manual, tag]
branch:
- master
- master