|
7 | 7 | jobs: |
8 | 8 |
|
9 | 9 | build: |
10 | | - runs-on: [ubuntu-latest] |
11 | | - container: ubuntu:focal |
| 10 | + runs-on: ubuntu-latest |
12 | 11 |
|
13 | 12 | steps: |
14 | 13 | - uses: actions/checkout@v4 |
15 | | - - name: Add download.mono-project.com/repo/ubuntu |
16 | | - run: > |
17 | | - apt-get update && apt-get install -y gnupg ca-certificates && |
18 | | - echo "deb http://download.mono-project.com/repo/ubuntu vs-focal main" > /etc/apt/sources.list.d/mono.list && |
19 | | - apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6A19B38D3D831EF && |
20 | | - apt-get update |
21 | | - - name: Install OS dependencies |
22 | | - run: 'apt-get install -y --no-install-recommends git patch curl zip unzip mono-complete msbuild nuget xvfb' |
23 | | - - name: Get dependencies |
24 | | - run: > |
25 | | - curl -LO https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.18/KeePass-2.18.zip/download && |
26 | | - curl -LO https://github.com/adrium/ILSpyConvert/releases/latest/download/ILSpyConvert.zip && |
27 | | - nuget restore && |
28 | | - unzip download && |
29 | | - unzip ILSpyConvert.zip && |
30 | | - cp KeePass.exe packages |
31 | | - - name: Build |
32 | | - run: 'export ILSPYCONVERT=$PWD/ILSpyConvert.exe; ./build/zip.sh && xvfb-run ./build/plgx.sh' |
33 | | - - name: Upload artifacts |
34 | | - uses: actions/upload-artifact@v4 |
| 14 | + - uses: actions/setup-dotnet@v4 |
35 | 15 | with: |
36 | | - name: PfpConverter |
37 | | - path: PfpConverter.* |
| 16 | + dotnet-version: 8.0.x |
| 17 | + - name: install dependencies |
| 18 | + run: | |
| 19 | + sudo apt update |
| 20 | + sudo apt install -y xvfb keepass2 |
| 21 | + curl -L -o kp.zip https://sourceforge.net/projects/keepass/files/KeePass%202.x/2.18/KeePass-2.18.zip/download |
| 22 | + unzip -d build kp.zip |
| 23 | + - run: xvfb-run ./build/all.sh |
| 24 | + - uses: actions/upload-artifact@v4 |
| 25 | + with: |
| 26 | + name: tool |
| 27 | + path: output/tool |
| 28 | + - uses: actions/upload-artifact@v4 |
| 29 | + with: |
| 30 | + name: plugin |
| 31 | + path: output/plugin.plgx |
0 commit comments