mirror of
https://github.com/shijimasoft/cia-unix.git
synced 2025-06-18 14:25:34 -04:00
added github build actions
This commit is contained in:
parent
8920b5c15d
commit
2951abecb8
39
.github/workflows/crystal.yml
vendored
Normal file
39
.github/workflows/crystal.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
name: cia-unix build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
# Linux x86-64
|
||||
- os: ubuntu-latest
|
||||
artifact_name: ${{ github.event.repository.name }}
|
||||
asset_name: ${{ github.event.repository.name }}-linux-x86_64
|
||||
# macOS x86-64
|
||||
- os: macos-13
|
||||
artifact_name: ${{ github.event.repository.name }}
|
||||
asset_name: ${{ github.event.repository.name }}-macos-x86_64
|
||||
# macOS arm64
|
||||
- os: macos-latest
|
||||
artifact_name: ${{ github.event.repository.name }}
|
||||
asset_name: ${{ github.event.repository.name }}-macos-arm64
|
||||
runs-on: ${{ matrix.os }}
|
||||
container:
|
||||
image: crystallang/crystal
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Build release
|
||||
run: |
|
||||
crystal build ${{ matrix.artifact_name }}.cr --release --no-debug
|
||||
strip ${{ matrix.artifact_name }}
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4.3.3
|
||||
with:
|
||||
name: ${{ matrix.asset_name }}
|
||||
path: ${{ matrix.artifact_name}}
|
Loading…
Reference in New Issue
Block a user