diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 41f32e8..0e3d135 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile index eb9d792..854d182 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 + } + } } } diff --git a/ci/build-release.sh b/ci/build-release.sh new file mode 100755 index 0000000..5273350 --- /dev/null +++ b/ci/build-release.sh @@ -0,0 +1,4 @@ +#!/bin/sh + + +cargo lambda build --release --output-format zip