Skip to content

Commit

Permalink
build linux and windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nokonoko1203 committed Jan 24, 2025
1 parent a1c9281 commit 3ad1aa1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Release
on:
push:
branches:
- feature/*
release:
types: [published]

jobs:
release:

runs-on: ${{ matrix.job.os }}
env:
PROJECT_NAME: point_tiler
Expand All @@ -15,7 +17,9 @@ jobs:
job:
- {os: macos-latest, target: x86_64-apple-darwin, extension: ''}
- {os: macos-latest, target: aarch64-apple-darwin, extension: ''}
- {os: ubuntu-latest, target: x86_64-unknown-linux-gnu, extension: ''}
- {os: linux-latest, target: x86_64-unknown-linux-gnu, extension: ''}
- {os: linux-latest, target: x86_64-unknown-linux-musl, extension: ''}
- {os: windows-latest, target: x86_64-pc-windows-msvc, extension: '.exe'}
permissions:
contents: write

Expand All @@ -30,10 +34,18 @@ jobs:
x86_64-apple-darwin
aarch64-apple-darwin
x86_64-unknown-linux-gnu
x86_64-unknown-linux-musl
x86_64-pc-windows-msvc
- name: Rust cache
uses: Swatinem/rust-cache@v2

- name: Install musl tools (only for musl target)
if: matrix.job.target == 'x86_64-unknown-linux-musl'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools
- name: Build
run: cargo build --release --package app --target ${{ matrix.job.target }}

Expand Down

0 comments on commit 3ad1aa1

Please sign in to comment.