-
Notifications
You must be signed in to change notification settings - Fork 1
84 lines (67 loc) · 2.2 KB
/
default.yml
File metadata and controls
84 lines (67 loc) · 2.2 KB
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
name: On default
on:
push:
branches: [ develop ]
paths-ignore: [ '*.md' ]
pull_request:
branches: [ develop ]
paths-ignore: [ '*.md' ]
jobs:
build:
name: CI
runs-on: ubuntu-latest
permissions:
contents: read
env:
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install build tools (CMake)
uses: lukka/get-cmake@latest
- name: Install build tools (Ccache)
run: |
sudo rm -f /var/lib/man-db/auto-update && \
sudo apt-get install -y ccache
- name: Install build tools (Emsdk)
run: bash scripts/install-emsdk.sh
- name: Use Node.js 24.x
uses: actions/setup-node@v6
with:
node-version: 24.x
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Use .NET 10.0.x
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
dotnet-quality: 'ga'
cache: true
cache-dependency-path: packages/shader-compressor/packages.lock.json
- name: Cache
id: cache
uses: actions/cache@v5
with:
path: .cache
key: cache-${{ github.head_ref || github.ref_name }}-${{ hashFiles('.git/modules/packages/shader-compressor/externals/emsdk/refs/heads/main', '.git/modules/packages/shader-compressor/externals/glsl-optimizer/refs/heads/master') }}
- name: Cache (restore)
if: steps.cache.outputs.cache-hit == 'true'
run: bash scripts/cache-restore.sh
- name: Install, Build and Test
run: bash scripts/integration.sh
env:
CI: true
- name: Upload collected code coverage
uses: codecov/codecov-action@v6
with:
directory: coverage
token: ${{ secrets.CODECOV_TOKEN }}
- name: Cache (prepack)
if: steps.cache.outputs.cache-hit != 'true'
run: bash scripts/cache-prepack.sh
- name: Publish the package (simulation)
run: |
npm version "0.0.0-$(git symbolic-ref --short HEAD).$(git rev-parse --short HEAD)" --workspaces && \
npm publish --dry-run --tag="$(git symbolic-ref --short HEAD)" --workspaces