Skip to content

Commit

Permalink
Add Github Actions builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jan 30, 2025
1 parent 8076f18 commit 4598852
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "Build"
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build-windows:
name: Windows Build
runs-on: windows-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-windows
cancel-in-progress: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build (release)
run: cargo build --release --locked --target x86_64-pc-windows-msvc --features vc-ltl
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: Windows Build
path: target/x86_64-pc-windows-msvc/release/generate-icon-exists-cache.exe
build-linux:
name: Linux Build
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-linux
cancel-in-progress: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Rust Toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
target: x86_64-unknown-linux-musl
- name: Install cargo-zigbuild
run: pip install cargo-zigbuild
- name: Build (release)
run: cargo zigbuild --release --locked --target x86_64-unknown-linux-musl
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: Linux Build
path: target/x86_64-unknown-linux-musl/release/generate-icon-exists-cache

0 comments on commit 4598852

Please sign in to comment.