Skip to content

Commit

Permalink
WIP: Add github workflow to build Linux releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Jan 31, 2024
1 parent 3a87c51 commit 9990ab0
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Ark: Build Linux Releases"

on:
# TODO: Remove this
push:
workflow_call:
inputs:
version:
required: false
description: "The Ark version"
default: ${{ github.sha }}
type: string
workflow_dispatch:

jobs:
build_linux:
name: Build Linux packages
runs-on: ubuntu-latest-8x
timeout-minutes: 60

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

strategy:
matrix:
arch: [x64]
flavor: [debug, release]

steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Setup Build Environment
run: |
sudo apt-get update
sudo apt-get install -y cargo
- name: Compile ARK (${{ matrix.flavor }})
run: |
cargo clean
cargo build ${{ matrix.flavor == 'release' && '--release' || '' }}

0 comments on commit 9990ab0

Please sign in to comment.