Skip to content

Commit

Permalink
Prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Dec 21, 2023
1 parent 6817cd9 commit aa89266
Show file tree
Hide file tree
Showing 15 changed files with 3,956 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ jobs:
uses: vishnudxb/[email protected]
if: failure()
with:
repo: hack-ink/<NAME>
repo: hack-ink/air
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}
34 changes: 0 additions & 34 deletions .github/workflows/pages.yml

This file was deleted.

27 changes: 3 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,18 @@ jobs:
run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }}
- name: Compress
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} .
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }}
mv target/${{ matrix.target.name }}/ci-release/air${{ matrix.target.extension }} .
zstd --ultra -22 -o air-${{ matrix.target.name }}.zst air${{ matrix.target.extension }}
- name: Collect artifact
run: |
mkdir -p artifacts
mv <NAME>-${{ matrix.target.name }}.zst artifacts
mv air-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
uses: actions/[email protected]
with:
name: artifacts
path: artifacts

release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Publish
uses: softprops/action-gh-release@v1
with:
discussion_category_name: Announcements
generate_release_notes: true

release:
name: Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,17 +79,6 @@ jobs:
- name: Publish
run: cargo publish --locked

publish-on-crates-io:
name: Publish on crates.io
runs-on: ubuntu-latest
steps:
- name: Fetch latest code
uses: actions/checkout@v4
- name: Login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
run: .maintain/release.sh

clean-artifacts:
name: Clean artifacts
if: always()
Expand Down
39 changes: 9 additions & 30 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,18 @@ jobs:
run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }}
- name: Compress
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} .
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }}
mv target/${{ matrix.target.name }}/ci-release/air${{ matrix.target.extension }} .
zstd --ultra -22 -o air-${{ matrix.target.name }}.zst air${{ matrix.target.extension }}
- name: Collect artifact
run: |
mkdir -p artifacts
mv <NAME>-${{ matrix.target.name }}.zst artifacts
mv air-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
uses: actions/[email protected]
with:
name: artifacts
path: artifacts

staging:
name: Staging
runs-on: ubuntu-latest
steps:
- name: Publish
uses: softprops/action-gh-release@v1
with:
discussion_category_name: Announcements
generate_release_notes: true

staging:
name: Staging
runs-on: ubuntu-latest
Expand All @@ -69,12 +59,12 @@ jobs:
md5sum * | tee ../MD5
mv ../SHA256 .
mv ../MD5 .
- name: Publish
uses: softprops/action-gh-release@v1
with:
discussion_category_name: Announcements
generate_release_notes: true
files: artifacts/*
# - name: Publish
# uses: softprops/action-gh-release@v1
# with:
# discussion_category_name: Announcements
# generate_release_notes: true
# files: artifacts/*

# publish-on-crates-io:
# name: Publish on crates.io
Expand All @@ -87,17 +77,6 @@ jobs:
# - name: Publish
# run: cargo publish --locked

# publish-on-crates-io:
# name: Publish on crates.io
# runs-on: ubuntu-latest
# steps:
# - name: Fetch latest code
# uses: actions/checkout@v4
# - name: Login
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
# - name: Publish
# run: .maintain/release.sh

clean-artifacts:
name: Clean artifacts
if: always()
Expand Down
Loading

0 comments on commit aa89266

Please sign in to comment.