Skip to content

Commit

Permalink
Split lune into proper crates (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell authored May 12, 2024
1 parent 3f53fc9 commit de71558
Show file tree
Hide file tree
Showing 185 changed files with 3,978 additions and 1,870 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
components: rustfmt

- name: Install Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Install Tooling
uses: ok-nick/[email protected]
Expand All @@ -41,7 +41,7 @@ jobs:
uses: actions/checkout@v4

- name: Install Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Install Tooling
uses: ok-nick/[email protected]
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/publish.yaml

This file was deleted.

56 changes: 46 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,32 @@ jobs:
uses: actions/checkout@v4

- name: Get version from manifest
uses: SebRollen/toml-action@9062fbef52816d61278d24ce53c8070440e1e8dd
uses: SebRollen/toml-action@v1.2.0
id: get_version
with:
file: Cargo.toml
field: package.version

build:
dry-run:
name: Dry-run
needs: ["init"]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish (dry-run)
uses: katyo/publish-crates@v2
with:
dry-run: true
check-repo: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

build:
needs: ["init", "dry-run"]
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -70,7 +88,7 @@ jobs:
targets: ${{ matrix.cargo-target }}

- name: Install Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Install build tooling (aarch64-unknown-linux-gnu)
if: matrix.cargo-target == 'aarch64-unknown-linux-gnu'
Expand All @@ -86,32 +104,32 @@ jobs:
run: just zip-release ${{ matrix.cargo-target }}

- name: Upload release artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact-name }}
path: release.zip

release:
name: Release
release-github:
name: Release (GitHub)
runs-on: ubuntu-latest
needs: ["init", "build"]
needs: ["init", "dry-run", "build"]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Just
uses: extractions/setup-just@v1
uses: extractions/setup-just@v2

- name: Download releases
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: ./releases

- name: Unpack releases
run: just unpack-releases "./releases"

- name: Create release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -120,3 +138,21 @@ jobs:
fail_on_unmatched_files: true
files: ./releases/*.zip
draft: true

release-crates:
name: Release (crates.io)
runs-on: ubuntu-latest
needs: ["init", "dry-run", "build"]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Publish crates
uses: katyo/publish-crates@v2
with:
dry-run: false
check-repo: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Loading

0 comments on commit de71558

Please sign in to comment.