This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (53 loc) · 1.98 KB
/
release.yml
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
name: release
on:
release:
types: [created]
jobs:
release_linux:
runs-on: ubuntu-latest
env:
TARGET: x86_64-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y libsdl2-dev libsdl2-mixer-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-ttf-dev
- name: Build
run: cargo build --release --verbose --target ${{ env.TARGET }}
- name: Zip artifact for deployment
run: zip -j agon-light-emulator_${{ env.TARGET }}_${{github.ref_name}}.zip target/${{ env.TARGET }}/release/agon-light-emulator README.md LICENSE MOS.bin
- name: Add bbcbasic.bin to zip
run: zip agon-light-emulator_${{ env.TARGET }}_${{github.ref_name}}.zip sdcard/bbcbasic.bin
- name: Upload to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "*.zip"
tags: true
release_windows:
runs-on: ubuntu-latest
env:
TARGET: x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update -y -qq
sudo apt-get install -y cmake make mingw-w64
- name: Build
run: |
rustup target add ${{ env.TARGET }}
cargo build --release --verbose --target ${{ env.TARGET }} --features sdl2/bundled
- name: Zip artifact for deployment
run: zip -j agon-light-emulator_${{ env.TARGET }}_${{github.ref_name}}.zip target/${{ env.TARGET }}/release/agon-light-emulator.exe target/${{ env.TARGET }}/release/SDL2.dll README.md LICENSE MOS.bin
- name: Add bbcbasic.bin to zip
run: zip agon-light-emulator_${{ env.TARGET }}_${{github.ref_name}}.zip sdcard/bbcbasic.bin
- name: Upload to GitHub Release
uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "*.zip"
tags: true