Skip to content

Commit

Permalink
ci: Build release binaries by OS in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Mar 10, 2024
1 parent 4e806ae commit 783443c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 'Release binaries'

on:
push:

permissions:
contents: write

jobs:
build:
runs-on: ${{ matrix.vm }}
strategy:
matrix:
include:
- name: linux
vm: ubuntu-latest
- name: macosx
vm: macos-latest
- name: windows
vm: windows-latest
steps:
- uses: 'actions/checkout@v4'
- name: 'Build'
run: cargo build --release
- run: |
ls -l target/release
- name: 'Make archive (not windows)'
run: |
mkdir -p ${{ env.archive_dir }}
cp \
README.md LICENSE target/release/gazer \
${{ env.archive_dir }}
ls -lR dist
env:
archive_dir: 'dist/gazer-${{ github.ref_name }}_${{ matrix.vm }}'

0 comments on commit 783443c

Please sign in to comment.