Skip to content

Commit ae5ea21

Browse files
committed
experiment with a job for building artifacts
1 parent 2feb5a8 commit ae5ea21

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,32 @@ jobs:
1414
run: npm run lint
1515
- name: Test
1616
run: npm test
17+
local-builds:
18+
strategy:
19+
matrix:
20+
os: [ubuntu-latest, windows-latest, macos-latest]
21+
runs-on: ${{ matrix.os }}
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v1
25+
- name: Setup Rust
26+
uses: hecrj/setup-rust-action@v1
27+
with:
28+
rust-version: stable
29+
targets: x86_64-unknown-linux-musl
30+
- name: Install MUSL tools
31+
if: matrix.os == 'ubuntu-latest'
32+
run: sudo apt-get update && sudo apt-get install -y musl-tools
33+
- name: Build
34+
run: |
35+
cd tests/integration/test-func
36+
npm ci -D ../../.. --silent
37+
npx serverless package
38+
- name: Upload artifact
39+
uses: actions/upload-artifact@v1
40+
with:
41+
name: ${{ matrix.os }}-lambda
42+
path: tests/integration/test-func/target/lambda/release/test-func.zip
1743
integration-test:
1844
strategy:
1945
matrix:

0 commit comments

Comments
 (0)