-
-
Notifications
You must be signed in to change notification settings - Fork 8
62 lines (60 loc) · 1.68 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: build
on:
pull_request: {}
workflow_dispatch: {}
env:
CI: "true"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install Zig toolchain
uses: korandoru/setup-zig@v1
with:
zig-version: 0.13.0
- name: Install Cargo Lambda
uses: jaxxstorm/[email protected]
with:
repo: cargo-lambda/cargo-lambda
tag: v1.5.0
platform: linux
arch: x86_64
- uses: actions/setup-node@v4
with:
node-version: '20.x'
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.x'
- uses: actions/setup-go@v4
with:
go-version: '1.x'
- uses: actions/setup-java@v4
with:
java-version: '17.x'
distribution: 'temurin'
- uses: actions/setup-python@v5
with:
python-version: 3.12.3
- name: Install dependencies
run: npx projen install:ci
- name: Build
run: npx projen build --verbose
- name: Build JS Artifact
run: npx projen package:js
- name: Build Java Artifact
run: npx projen package:java
- name: Build Python Artifact
run: npx projen package:python
- name: Build Dotnet Artifact
run: npx projen package:dotnet
- name: Build Go Artifact
run: npx projen package:go