Skip to content

Commit

Permalink
Merge pull request #51 from MIERUNE/build-linux-and-windows
Browse files Browse the repository at this point in the history
Build linux and windows
  • Loading branch information
nokonoko1203 authored Jan 24, 2025
2 parents a1c9281 + 735dbd4 commit f5f8763
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:

jobs:
release:

runs-on: ${{ matrix.job.os }}
env:
PROJECT_NAME: point_tiler
Expand All @@ -16,6 +15,8 @@ jobs:
- {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: ubuntu-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 +31,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 f5f8763

Please sign in to comment.