Subversion Repositories Krakow BASIC

Rev

Rev 26 | Rev 31 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 30
Line 181... Line 181...
181
      uses: actions/upload-artifact@v4
181
      uses: actions/upload-artifact@v4
182
      with:
182
      with:
183
        name: build-arduino
183
        name: build-arduino
184
        path: krakow-arduino.hex
184
        path: krakow-arduino.hex
185
 
185
 
-
 
186
  build-msx:
-
 
187
    name: "Build for MSX"
-
 
188
    runs-on: ubuntu-latest
-
 
189
 
-
 
190
    permissions:
-
 
191
      contents: write
-
 
192
 
-
 
193
    steps:
-
 
194
    - name: Checkout
-
 
195
      uses: actions/checkout@v4
-
 
196
    - name: Install packages
-
 
197
      run: sudo apt-get install sdcc
-
 
198
    - name: Clone hex2bin
-
 
199
      run: git clone https://github.com/algodesigner/hex2bin
-
 
200
    - name: Build hex2bin
-
 
201
      run: rm -f hex2bin/hex2bin && make -C hex2bin
-
 
202
    - name: Add to PATH
-
 
203
      run: echo "$(pwd)/hex2bin" >> $GITHUB_PATH
-
 
204
    - name: Make sure it is clean
-
 
205
      run: make clean PLATFORM=msx
-
 
206
    - name: Make
-
 
207
      run: make PLATFORM=msx
-
 
208
    - name: Rename
-
 
209
      run: cp BASIC/krakow.msx.rom krakow-msx.rom
-
 
210
    - name: Upload artifact
-
 
211
      uses: actions/upload-artifact@v4
-
 
212
      with:
-
 
213
        name: build-msx
-
 
214
        path: krakow-msx.rom
-
 
215
 
186
  release:
216
  release:
187
    name: "Release"
217
    name: "Release"
188
    runs-on: ubuntu-latest
218
    runs-on: ubuntu-latest
189
 
219
 
190
    permissions:
220
    permissions:
191
      contents: write
221
      contents: write
192
 
222
 
193
    needs: [build-c64, build-arduino, build-a800xl, build-pet, build-apple2, build-win32, build-win64]
223
    needs: [build-c64, build-arduino, build-a800xl, build-pet, build-apple2, build-win32, build-win64, build-msx]
194
 
224
 
195
    steps:
225
    steps:
196
    - name: Checkout
226
    - name: Checkout
197
      uses: actions/checkout@v4
227
      uses: actions/checkout@v4
198
    - name: Download from build-c64
228
    - name: Download from build-c64
Line 217... Line 247...
217
        name: build-win32
247
        name: build-win32
218
    - name: Download from build-win64
248
    - name: Download from build-win64
219
      uses: actions/download-artifact@v4
249
      uses: actions/download-artifact@v4
220
      with:
250
      with:
221
        name: build-win64
251
        name: build-win64
-
 
252
    - name: Download from build-msx
-
 
253
      uses: actions/download-artifact@v4
-
 
254
      with:
-
 
255
        name: build-msx
222
    - name: Download from build-arduino
256
    - name: Download from build-arduino
223
      uses: actions/download-artifact@v4
257
      uses: actions/download-artifact@v4
224
      with:
258
      with:
225
        name: build-arduino
259
        name: build-arduino
226
    - name: Delete old release
260
    - name: Delete old release
227
      run: gh release delete "$(make get-version)" --cleanup-tag -y || true
261
      run: gh release delete "$(make get-version)" --cleanup-tag -y || true
228
      env:
262
      env:
229
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
263
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
230
    - name: Release
264
    - name: Release
231
      run: gh release create -t "v$(make get-version)" "$(make get-version)" krakow-c64.80 krakow-arduino.hex krakow-a800xl krakow-pet.prg krakow-apple2.dsk krakow-win32.exe krakow-win64.exe -n "Version \`$(make get-version)\` was build in this release"
265
      run: gh release create -t "v$(make get-version)" "$(make get-version)" krakow-c64.80 krakow-arduino.hex krakow-a800xl krakow-pet.prg krakow-apple2.dsk krakow-win32.exe krakow-win64.exe krakow-msx.rom -n "Version \`$(make get-version)\` was build in this release"
232
      env:
266
      env:
233
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
267
        GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}