|
9 | 9 | branches: trunk |
10 | 10 | paths: |
11 | 11 | - 'action.yml' |
| 12 | + - 'docker-compose.yml' |
12 | 13 | - '**test.yml' |
13 | 14 | pull_request: |
14 | 15 | branches: trunk |
15 | 16 | paths: |
16 | 17 | - 'action.yml' |
| 18 | + - 'docker-compose.yml' |
17 | 19 | - '**test.yml' |
18 | 20 |
|
19 | 21 | env: |
@@ -44,16 +46,24 @@ jobs: |
44 | 46 | echo "VERSION=${{ github.sha }}" >> $GITHUB_ENV |
45 | 47 | fi |
46 | 48 |
|
| 49 | + - name: Install docker-compose |
| 50 | + run: | |
| 51 | + #sudo apt update |
| 52 | + #sudo apt upgrade -y |
| 53 | + sudo apt install -y docker-compose |
| 54 | +
|
| 55 | + - name: Checkout rmw |
| 56 | + uses: actions/checkout@v4 |
| 57 | + with: |
| 58 | + path: _linuxdeploy_test |
| 59 | + |
47 | 60 | - name: Build AppImage |
48 | 61 | run: | |
49 | | - docker run -t \ |
50 | | - --rm \ |
51 | | - --platform=${{ matrix.platform }} \ |
52 | | - -e HOSTUID=$(id -u) \ |
53 | | - -e VERSION \ |
54 | | - -v $GITHUB_WORKSPACE:/workspace \ |
55 | | - -w /workspace \ |
56 | | - andy5995/linuxdeploy:v2-focal packaging/appimage/pre-appimage.sh |
| 62 | + export HOSTUID=$(id -u) HOSTGID=$(id -g) |
| 63 | + docker-compose -f _linuxdeploy_test/docker-compose.yml run --rm build |
| 64 | + env: |
| 65 | + SCRIPT: 'packaging/appimage/pre-appimage.sh' |
| 66 | + PLATFORM: ${{ matrix.platform }} |
57 | 67 |
|
58 | 68 | - name: Create sha256sum |
59 | 69 | run: | |
|
68 | 78 | name: ${{ env.IMAGE_FILENAME }} |
69 | 79 | path: ./out/* |
70 | 80 | if-no-files-found: error |
71 | | - |
72 | | - #test-netpanzer: |
73 | | - #runs-on: ubuntu-latest |
74 | | - #strategy: |
75 | | - #matrix: |
76 | | - #platform: [amd64] |
77 | | - #steps: |
78 | | - #- name: Checkout |
79 | | - #uses: actions/checkout@v4 |
80 | | - #- name: Checkout netpanzer |
81 | | - #uses: actions/checkout@v4 |
82 | | - #with: |
83 | | - #repository: netpanzer/netpanzer |
84 | | - #path: netpanzer |
85 | | - #- name: Use action from self |
86 | | - #uses: ./ |
87 | | - #with: |
88 | | - #platform: ${{ matrix.platform }} |
89 | | - #pre_appimage_script: rmw/packaging/appimage/pre |
90 | | - #sudo apt install -y \ |
91 | | - #gettext \ |
92 | | - #liblua5.1-0-dev \ |
93 | | - #libphysfs-dev \ |
94 | | - #libsdl2-dev \ |
95 | | - #libsdl2-mixer-dev \ |
96 | | - #libsdl2-ttf-dev |
97 | | - #build_commands: | |
98 | | - #git clone --depth 1 https://github.com/netpanzer/netpanzer |
99 | | - #cd netpanzer |
100 | | - #meson setup _build -Dprefix=/usr |
101 | | - #cd _build |
102 | | - #ninja |
103 | | - #install_to_appdir_commands: | |
104 | | - #meson install --destdir=$APPDIR --skip-subprojects |
105 | | - #linuxdeploy_output_version: $VERSION |
106 | | - #linuxdeploy_args: | |
107 | | - #-d netpanzer/support/win32/netpanzer.desktop \ |
108 | | - #--custom-apprun=netpanzer/support/appimage/AppRun \ |
109 | | - #--icon-file=netpanzer/netpanzer.png \ |
110 | | - #--icon-filename=netpanzer \ |
111 | | - #--executable $APPDIR/usr/bin/netpanzer \ |
112 | | - #--output appimage |
113 | | - |
114 | | - #- name: Create sha256sum |
115 | | - #run: | |
116 | | - #cd out |
117 | | - #sha256sum $IMAGE_FILENAME > $IMAGE_FILENAME.sha256sum |
118 | | - |
119 | | - #- name: Upload AppImage |
120 | | - #uses: actions/upload-artifact@v4 |
121 | | - #with: |
122 | | - #name: ${{ env.IMAGE_FILENAME }} |
123 | | - #path: ./out/* |
124 | | - #if-no-files-found: error |
0 commit comments