forked from CycloneDX/cdxgen-plugins-bin
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (84 loc) · 2.22 KB
/
test.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Build npm package
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
pkg:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- uses: actions/setup-go@v5
with:
go-version: '^1.19.8'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- uses: swift-actions/setup-swift@v2
if: matrix.os == 'ubuntu-latest'
- uses: oras-project/setup-oras@v1
- run: oras version
- name: Trim CI agent
run: |
chmod +x contrib/free_disk_space.sh
./contrib/free_disk_space.sh
- name: Build
run: |
wget https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-amd64_linux.tar.xz
tar -xvf upx-4.2.4-amd64_linux.tar.xz
chmod +x upx-4.2.4-amd64_linux/upx
sudo cp upx-4.2.4-amd64_linux/upx /usr/local/bin/
bash build.sh
pip3 install blint
blint -i plugins -o /tmp/reports
npm publish --dry-run
pushd packages/windows-amd64
npm publish --dry-run
popd
pushd packages/linux-arm64
npm publish --dry-run
popd
pushd packages/linux-arm
npm publish --dry-run
popd
pushd packages/windows-arm64
npm publish --dry-run
popd
pushd packages/darwin-arm64
npm publish --dry-run
popd
pushd packages/darwin-amd64
npm publish --dry-run
popd
pushd packages/ppc64
npm publish --dry-run
popd
winpkg:
runs-on: windows-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: https://registry.npmjs.org/
- uses: actions/setup-go@v5
with:
go-version: '^1.19.8'
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build
run: |
.\build.ps1