remove `#!/usr/bin/env sh`
[liba.git] / .github / workflows / xmake.yml
bloba8dd5b24db04a773b7703d2b23420f137ba64f8c
1 name: xmake
2 on:
3   workflow_dispatch:
4 jobs:
5   unix:
6     strategy:
7       fail-fast: false
8       matrix:
9         os: [ ubuntu-latest, macos-latest ]
10     runs-on: ${{ matrix.os }}
11     steps:
12       - uses: actions/checkout@v4
13         with:
14           lfs: true
15           submodules: true
16       - uses: xmake-io/github-action-setup-xmake@v1
17         with:
18           actions-cache-key: xmake
19           actions-cache-folder: _
20       - name: Run cargo
21         run: cargo test --all-features
22       - name: Run setup
23         run: |
24           python3 -m venv _
25           . _/bin/activate
26           python3 -m pip install -r requirements.txt
27           env
28       - name: Run xmake f
29         run: |
30           . _/bin/activate
31           xmake f -yvDc -m check --warning=y --liba-rust=y --liba-java=y --liba-lua=lua --liba-python=python --liba-quickjs=y
32       - name: Run xmake b
33         run: |
34           . _/bin/activate
35           xmake b --all -v
36       - name: Run xmake i
37         run: |
38           . _/bin/activate
39           xmake i -vD -o_
40       - name: Run xmake r
41         run: |
42           . _/bin/activate
43           xmake r --all
44   msvc:
45     strategy:
46       fail-fast: false
47     runs-on: windows-latest
48     steps:
49       - uses: actions/checkout@v4
50         with:
51           lfs: true
52           submodules: true
53       - uses: xmake-io/github-action-setup-xmake@v1
54         with:
55           actions-cache-key: xmake
56           actions-cache-folder: _
57       - name: Run cargo
58         run: cargo test --all-features
59       - name: Run setup
60         run: |
61           python -m venv _
62           _/Scripts/Activate.ps1
63           python -m pip install -r requirements.txt
64           Get-ChildItem Env: | Sort Name
65       - name: Run xmake f
66         run: |
67           _/Scripts/Activate.ps1
68           xmake f -yvDc -m check --warning=y --liba-rust=y --liba-java=y --liba-lua=lua --liba-python=python --liba-quickjs=y
69       - name: Run xmake b
70         run: |
71           _/Scripts/Activate.ps1
72           xmake b --all -v
73       - name: Run xmake i
74         run: |
75           _/Scripts/Activate.ps1
76           xmake i -vD -o_
77       - name: Run xmake r
78         run: |
79           _/Scripts/Activate.ps1
80           xmake r --all