Skip to content

Commit

Permalink
build: trying out cleaner flake
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentVoid13 committed Oct 10, 2024
1 parent aaa6f3e commit 1bcb843
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 271 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,31 @@ jobs:
uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Build ${{ matrix.target }} binary
run: |
nix build -L .#${{matrix.target}}.release.SyncDisBoi
nix build -L .#${{matrix.target.derivation}}
mkdir artifacts/
cp result/bin/* artifacts
cd artifacts
ls | xargs -I{} mv {} ${{matrix.target}}-{}
ls | xargs -I{} mv {} ${{matrix.target.name}}-{}
- uses: actions/upload-artifact@v4
with:
name: "${{ matrix.target }}-sync_dis_boi"
name: "${{ matrix.target.name }}-sync_dis_boi"
path: "artifacts/*"
strategy:
matrix:
os:
- ubuntu-latest
target:
- x86_64-linux-musl
- aarch64-linux-musl
- mingw64
- derivation: x86_64-unknown-linux-musl
name: linux-x86_64
- derivation: aarch64-unknown-linux-musl
name: linux-aarch64
- derivation: x86_64-pc-windows-gnu
name: windows-x86_64
include:
- os: macos-latest
target: aarch64-darwin
target:
derivation: ""
name: mac-aarch64
release:
name: Release
needs: build
Expand Down
210 changes: 17 additions & 193 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1bcb843

Please sign in to comment.