Skip to content

Commit

Permalink
added github build actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shijimasoft committed Jun 10, 2024
1 parent 8920b5c commit 2951abe
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 2951abe

Please sign in to comment.