update workflows (to also include ARM support)
This commit is contained in:
68
.github/workflows/publish.yaml
vendored
68
.github/workflows/publish.yaml
vendored
@@ -9,72 +9,26 @@ on:
|
|||||||
description: the tag to release for
|
description: the tag to release for
|
||||||
default: ""
|
default: ""
|
||||||
jobs:
|
jobs:
|
||||||
compile:
|
release_bin:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{matrix.os}}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-24.04
|
||||||
|
- ubuntu-24.04-arm
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- run: make compile
|
- run: make compile
|
||||||
- uses: actions/upload-artifact@v4
|
- run: echo "FNAME=coinflip-$(uname -s)-$(uname -m)" >>"$GITHUB_ENV"
|
||||||
with:
|
- run: mv bin/coinflip "$FNAME"
|
||||||
name: bin
|
|
||||||
path: bin/
|
|
||||||
# release_deb:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs: compile
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/download-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: bin
|
|
||||||
# path: ${{github.workspace}}/bin
|
|
||||||
# - if: ${{!env.ACT}}
|
|
||||||
# uses: softprops/action-gh-release@v2
|
|
||||||
# with:
|
|
||||||
# tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
|
||||||
# files: bin/coinflip
|
|
||||||
# fail_on_unmatched_files: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
# - if: ${{env.ACT}}
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# path: bin/coinflip
|
|
||||||
# release_aur-bin:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# needs: compile
|
|
||||||
# steps:
|
|
||||||
# - uses: actions/download-artifact@v4
|
|
||||||
# with:
|
|
||||||
# name: bin
|
|
||||||
# path: ${{github.workspace}}/bin
|
|
||||||
# - if: ${{!env.ACT}}
|
|
||||||
# uses: softprops/action-gh-release@v2
|
|
||||||
# with:
|
|
||||||
# tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
|
||||||
# files: bin/coinflip
|
|
||||||
# fail_on_unmatched_files: true
|
|
||||||
# env:
|
|
||||||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
# - if: ${{env.ACT}}
|
|
||||||
# uses: actions/upload-artifact@v4
|
|
||||||
# with:
|
|
||||||
# path: bin/coinflip
|
|
||||||
release_bin:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: compile
|
|
||||||
steps:
|
|
||||||
- if: ${{!env.ACT}}
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: bin
|
|
||||||
path: ${{github.workspace}}/bin
|
|
||||||
- uses: softprops/action-gh-release@v2
|
- uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
tag_name: ${{github.event.release.tag_name || github.event.inputs.release_tag}}
|
||||||
files: bin/coinflip
|
files: ${{env.FNAME}}
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
- if: ${{env.ACT}}
|
- if: ${{env.ACT}}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: bin/coinflip
|
path: ${{env.FNAME}}
|
||||||
|
|||||||
14
.github/workflows/validate.yaml
vendored
14
.github/workflows/validate.yaml
vendored
@@ -1,14 +0,0 @@
|
|||||||
name: validate
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- '**'
|
|
||||||
jobs:
|
|
||||||
compile:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: make compile
|
|
||||||
Reference in New Issue
Block a user