Some checks failed
Galvanic Corrosion Cross-Compile / build (push) Failing after 1m9s
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Galvanic Corrosion Cross-Compile
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: 'zombieb/galvanic-corrosion'
|
|
|
|
- uses: denoland/setup-deno@v2
|
|
with:
|
|
deno-version: v2.x
|
|
|
|
- name: Run cross-compile task
|
|
run: |
|
|
deno run cross-compile
|
|
|
|
- name: Get short commit hash
|
|
id: get_hash
|
|
run: echo "HASH=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
|
|
|
|
- name: Rename Linux build
|
|
run: mv build/GalvanicCorrosion build/GalvanicCorrosion-$HASH
|
|
|
|
- name: Rename Windows build
|
|
run: mv build/GalvanicCorrosion.exe build/GalvanicCorrosion-$HASH.exe
|
|
|
|
- name: Discord Webhook - Storage
|
|
uses: tsickert/discord-webhook@v7.0.0
|
|
with:
|
|
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
|
username: Galvanic Corrosion Gitea Actions
|
|
embed-title: Linux Build - ${{ env.HASH }}
|
|
filename: build/GalvanicCorrosion-${{ env.HASH }}
|
|
|
|
- name: Discord Webhook - Storage
|
|
uses: tsickert/discord-webhook@v7.0.0
|
|
with:
|
|
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
|
username: Galvanic Corrosion Gitea Actions
|
|
embed-title: Windows Build - ${{ env.HASH }}
|
|
filename: build/GalvanicCorrosion-${{ env.HASH }}.exe |