fork/replay-manager-for-slippi

git clone https://git.julia.blue/fork/replay-manager-for-slippi

Nicoletok put python-version backa8c9b80

2.3.6
2.3 KiB111 linesraw
1name: Build Test Upload
2
3on: [push, pull_request, workflow_dispatch]
4
5jobs:
6  macos:
7    runs-on: macos-latest
8
9    steps:
10      - name: Check out Git repository
11        uses: actions/checkout@v6
12
13      - name: Setup Python (for Mach-O)
14        uses: actions/setup-python@v6
15        with:
16          python-version: '3.11'
17
18      - name: Install Node.js and NPM
19        uses: actions/setup-node@v6
20        with:
21          node-version: 22
22          cache: npm
23
24      - name: npm install
25        run: |
26          npm install
27
28      - name: npm test
29        env:
30          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31        run: |
32          npm run lint
33          npm exec tsc
34          npm run package
35          npm test
36
37      - name: upload
38        uses: actions/upload-artifact@v7
39        with:
40          name: macos
41          path: |
42            release/build/ReplayReporterForSlippi*.dmg
43  ubuntu:
44    runs-on: ubuntu-22.04
45
46    steps:
47      - name: Check out Git repository
48        uses: actions/checkout@v6
49
50      - name: Install Node.js and NPM
51        uses: actions/setup-node@v6
52        with:
53          node-version: 22
54          cache: npm
55
56      - name: Install libudev
57        run: |
58          sudo apt update -y
59          sudo apt install -y libudev-dev
60
61      - name: npm install
62        run: |
63          npm install
64
65      - name: npm test
66        env:
67          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68        run: |
69          npm run lint
70          npm exec tsc
71          npm run package
72          npm test
73
74      - name: upload
75        uses: actions/upload-artifact@v7
76        with:
77          name: ubuntu
78          path: |
79            release/build/ReplayReporterForSlippi*.AppImage
80  windows:
81    runs-on: windows-latest
82
83    steps:
84      - name: Check out Git repository
85        uses: actions/checkout@v6
86
87      - name: Install Node.js and NPM
88        uses: actions/setup-node@v6
89        with:
90          node-version: 22
91          cache: npm
92
93      - name: npm install
94        run: |
95          npm install
96
97      - name: npm test
98        env:
99          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
100        run: |
101          npm run lint
102          npm exec tsc
103          npm run package
104          npm test
105
106      - name: upload
107        uses: actions/upload-artifact@v7
108        with:
109          name: windows
110          path: |
111            release/build/ReplayReporterForSlippi*.exe