You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
2.7 KiB
89 lines
2.7 KiB
name: OpenDingux Release Build |
|
|
|
on: |
|
release: |
|
types: [created] |
|
workflow_dispatch: |
|
|
|
jobs: |
|
gcw0: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v2 |
|
with: |
|
fetch-depth: 0 |
|
|
|
- name: Create Build Environment |
|
run: > |
|
sudo apt-get update && |
|
sudo apt-get install -y curl cmake git squashfs-tools && |
|
curl -L http://od.abstraction.se/opendingux/toolchain/opendingux-gcw0-toolchain.2021-03-10.tar.xz -o gcw0-toolchain.tar.xz && |
|
sudo mkdir -p /opt/gcw0-toolchain && sudo chown -R "${USER}:" /opt/gcw0-toolchain && |
|
tar -C /opt -xf gcw0-toolchain.tar.xz |
|
|
|
- name: Build |
|
working-directory: ${{github.workspace}} |
|
shell: bash |
|
run: Packaging/OpenDingux/build.sh rg350 |
|
env: |
|
TOOLCHAIN: /opt/gcw0-toolchain |
|
|
|
- name: Upload-Package |
|
if: ${{ !env.ACT }} |
|
uses: actions/upload-artifact@v2 |
|
with: |
|
name: devilutionx-rg350.opk.zip |
|
path: build-rg350/devilutionx-rg350.opk |
|
|
|
- name: Update Release |
|
if: ${{ github.event_name == 'release' && github.event.action == 'created' && !env.ACT }} |
|
uses: ncipollo/release-action@v1 |
|
with: |
|
artifacts: "build-rg350/devilutionx-rg350.opk" |
|
allowUpdates: true |
|
omitBody: true |
|
omitName: true |
|
omitPrereleaseDuringUpdate: true |
|
token: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
lepus: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v2 |
|
with: |
|
fetch-depth: 0 |
|
|
|
- name: Create Build Environment |
|
run: > |
|
sudo apt update && |
|
sudo apt install -y curl cmake git squashfs-tools && |
|
curl -L http://od.abstraction.se/opendingux/toolchain/opendingux-lepus-toolchain.2021-03-11.tar.xz -o lepus-toolchain.tar.xz && |
|
sudo mkdir -p /opt/lepus-toolchain && sudo chown -R "${USER}:" /opt/lepus-toolchain && |
|
tar -C /opt -xf lepus-toolchain.tar.xz |
|
|
|
- name: Build |
|
working-directory: ${{github.workspace}} |
|
shell: bash |
|
run: Packaging/OpenDingux/build.sh lepus |
|
env: |
|
TOOLCHAIN: /opt/lepus-toolchain |
|
|
|
- name: Upload-Package |
|
if: ${{ !env.ACT }} |
|
uses: actions/upload-artifact@v2 |
|
with: |
|
name: devilutionx-lepus.opk.zip |
|
path: build-lepus/devilutionx-lepus.opk |
|
|
|
- name: Update Release |
|
if: ${{ github.event_name == 'release' && github.event.action == 'created' && !env.ACT }} |
|
uses: ncipollo/release-action@v1 |
|
with: |
|
artifacts: "build-lepus/devilutionx-lepus.opk" |
|
allowUpdates: true |
|
omitBody: true |
|
omitName: true |
|
omitPrereleaseDuringUpdate: true |
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|