Skip to content

Commit 35c8153

Browse files
authored
chore(ci): Update GitHub actions to fix deprecation issues. (#59)
* chore(ci): Update GitHub actions to fix deprecation issues. * chore(ci): Update projen dependencies. * Revert "chore(ci): Update projen dependencies." This reverts commit a077de4. * chore(ci): Pin Python version. * Reapply "chore(ci): Update projen dependencies." This reverts commit 33a1aed. * chore(ci): Update file formats. * chore(ci): Update yarn.lock * chore(ci): Update files. * chore(ci): Update artifact download process. * chore(ci): Update artifact paths and permissions. * chore(ci): Simplify workflow. * chore(ci): Update release workflow.
1 parent 5d1360d commit 35c8153

File tree

15 files changed

+1776
-3370
lines changed

15 files changed

+1776
-3370
lines changed

.eslintrc.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.gitattributes

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build.yml

Lines changed: 25 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: build
22
on:
33
pull_request: {}
44
workflow_dispatch: {}
5+
6+
env:
7+
CI: "true"
8+
59
jobs:
610
build:
711
runs-on: ubuntu-latest
812
permissions:
913
contents: write
10-
outputs:
11-
self_mutation_happened: ${{ steps.self_mutation.outputs.self_mutation_happened }}
12-
env:
13-
CI: "true"
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
ref: ${{ github.event.pull_request.head.ref }}
1919
repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -22,178 +22,41 @@ jobs:
2222
- name: Install Zig toolchain
2323
uses: korandoru/setup-zig@v1
2424
with:
25-
zig-version: 0.10.0
25+
zig-version: 0.13.0
2626
- name: Install Cargo Lambda
2727
uses: jaxxstorm/[email protected]
2828
with:
2929
repo: cargo-lambda/cargo-lambda
30-
tag: v1.2.1
30+
tag: v1.5.0
3131
platform: linux
3232
arch: x86_64
33-
- uses: actions/setup-node@v3
33+
- uses: actions/setup-node@v4
3434
with:
35-
node-version: '18.x'
36-
- uses: actions/setup-dotnet@v3
35+
node-version: '20.x'
36+
- uses: actions/setup-dotnet@v4
3737
with:
3838
dotnet-version: '7.x'
39-
- uses: actions/setup-go@v3
39+
- uses: actions/setup-go@v4
4040
with:
4141
go-version: '1.x'
42-
- uses: actions/setup-java@v3
42+
- uses: actions/setup-java@v4
4343
with:
4444
java-version: '17.x'
4545
distribution: 'temurin'
46-
- uses: actions/setup-python@v4
46+
- uses: actions/setup-python@v5
4747
with:
48-
python-version: '3.x'
48+
python-version: 3.12.3
4949
- name: Install dependencies
5050
run: npx projen install:ci
51-
- name: build
51+
- name: Build
5252
run: npx projen build --verbose
53-
- name: Backup artifact permissions
54-
run: cd dist && getfacl -R . > permissions-backup.acl
55-
continue-on-error: true
56-
- name: Upload artifact
57-
uses: actions/upload-artifact@v3
58-
with:
59-
name: build-artifact
60-
path: dist
61-
62-
package-js:
63-
needs: build
64-
runs-on: ubuntu-latest
65-
permissions: {}
66-
if: "! needs.build.outputs.self_mutation_happened"
67-
steps:
68-
- uses: actions/setup-node@v3
69-
with:
70-
node-version: 18.x
71-
- name: Download build artifacts
72-
uses: actions/download-artifact@v3
73-
with:
74-
name: build-artifact
75-
path: dist
76-
- name: Restore build artifact permissions
77-
run: cd dist && setfacl --restore=permissions-backup.acl
78-
continue-on-error: true
79-
- name: Prepare Repository
80-
run: mv dist .repo
81-
- name: Install Dependencies
82-
run: cd .repo && npx projen install:ci
83-
- name: Create js artifact
84-
run: cd .repo && npx projen package:js
85-
- name: Collect js Artifact
86-
run: mv .repo/dist dist
87-
package-java:
88-
needs: build
89-
runs-on: ubuntu-latest
90-
permissions: {}
91-
if: "! needs.build.outputs.self_mutation_happened"
92-
steps:
93-
- uses: actions/setup-java@v3
94-
with:
95-
distribution: temurin
96-
java-version: '17.x'
97-
- uses: actions/setup-node@v3
98-
with:
99-
node-version: 18.x
100-
- name: Download build artifacts
101-
uses: actions/download-artifact@v3
102-
with:
103-
name: build-artifact
104-
path: dist
105-
- name: Restore build artifact permissions
106-
run: cd dist && setfacl --restore=permissions-backup.acl
107-
continue-on-error: true
108-
- name: Prepare Repository
109-
run: mv dist .repo
110-
- name: Install Dependencies
111-
run: cd .repo && npx projen install:ci
112-
- name: Create java artifact
113-
run: cd .repo && npx projen package:java
114-
- name: Collect java Artifact
115-
run: mv .repo/dist dist
116-
package-python:
117-
needs: build
118-
runs-on: ubuntu-latest
119-
permissions: {}
120-
if: "! needs.build.outputs.self_mutation_happened"
121-
steps:
122-
- uses: actions/setup-node@v3
123-
with:
124-
node-version: 18.x
125-
- uses: actions/setup-python@v4
126-
with:
127-
python-version: 3.x
128-
- name: Download build artifacts
129-
uses: actions/download-artifact@v3
130-
with:
131-
name: build-artifact
132-
path: dist
133-
- name: Restore build artifact permissions
134-
run: cd dist && setfacl --restore=permissions-backup.acl
135-
continue-on-error: true
136-
- name: Prepare Repository
137-
run: mv dist .repo
138-
- name: Install Dependencies
139-
run: cd .repo && npx projen install:ci
140-
- name: Create python artifact
141-
run: cd .repo && npx projen package:python
142-
- name: Collect python Artifact
143-
run: mv .repo/dist dist
144-
package-dotnet:
145-
needs: build
146-
runs-on: ubuntu-latest
147-
permissions: {}
148-
if: "! needs.build.outputs.self_mutation_happened"
149-
steps:
150-
- uses: actions/setup-node@v3
151-
with:
152-
node-version: 18.x
153-
- uses: actions/setup-dotnet@v3
154-
with:
155-
dotnet-version: 3.x
156-
- name: Download build artifacts
157-
uses: actions/download-artifact@v3
158-
with:
159-
name: build-artifact
160-
path: dist
161-
- name: Restore build artifact permissions
162-
run: cd dist && setfacl --restore=permissions-backup.acl
163-
continue-on-error: true
164-
- name: Prepare Repository
165-
run: mv dist .repo
166-
- name: Install Dependencies
167-
run: cd .repo && npx projen install:ci
168-
- name: Create dotnet artifact
169-
run: cd .repo && npx projen package:dotnet
170-
- name: Collect dotnet Artifact
171-
run: mv .repo/dist dist
172-
package-go:
173-
needs: build
174-
runs-on: ubuntu-latest
175-
permissions: {}
176-
if: "! needs.build.outputs.self_mutation_happened"
177-
steps:
178-
- uses: actions/setup-node@v3
179-
with:
180-
node-version: 18.x
181-
- uses: actions/setup-go@v3
182-
with:
183-
go-version: ^1.16.0
184-
- name: Download build artifacts
185-
uses: actions/download-artifact@v3
186-
with:
187-
name: build-artifact
188-
path: dist
189-
- name: Restore build artifact permissions
190-
run: cd dist && setfacl --restore=permissions-backup.acl
191-
continue-on-error: true
192-
- name: Prepare Repository
193-
run: mv dist .repo
194-
- name: Install Dependencies
195-
run: cd .repo && npx projen install:ci
196-
- name: Create go artifact
197-
run: cd .repo && npx projen package:go
198-
- name: Collect go Artifact
199-
run: mv .repo/dist dist
53+
- name: Build JS Artifact
54+
run: npx projen package:js
55+
- name: Build Java Artifact
56+
run: npx projen package:java
57+
- name: Build Python Artifact
58+
run: npx projen package:python
59+
- name: Build Dotnet Artifact
60+
run: npx projen package:dotnet
61+
- name: Build Go Artifact
62+
run: npx projen package:go

0 commit comments

Comments
 (0)