fixup! Add a simple Jenkinsfile

This commit is contained in:
R Tyler Croy 2024-04-21 16:36:05 +00:00
parent 5f08f7a13c
commit fabc0b205c
3 changed files with 12 additions and 3 deletions

View File

@ -26,8 +26,7 @@ jobs:
repo: cargo-lambda/cargo-lambda
platform: linux # Other valid options: 'windows' or 'darwin'
arch: x86_64 # Other valid options for linux: 'aarch64'
# Add your build steps below
- name: Build
run: cargo lambda build
run: ./ci/build.sh
- name: Run tests
run: cargo test --verbose
run: ./ci/test.sh

6
Jenkinsfile vendored
View File

@ -28,6 +28,12 @@ pipeline {
sh './ci/test.sh'
}
}
stage('Release') {
steps {
sh './ci/build-release.sh'
archiveArtifacts artifacts: 'target/lambda/**/*.zip', fingerprint: true, onlyIfSuccessful: true
}
}
}
}

4
ci/build-release.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
cargo lambda build --release --output-format zip