Skip to content

Commit

Permalink
Update CI (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
seemenkina authored Nov 9, 2024
1 parent 9fffe1d commit 0606b4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -48,9 +48,9 @@ jobs:
tar -czvf ${{ matrix.target }}-${{matrix.curve}}.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-archive
name: ${{ matrix.target }}-${{ matrix.curve }}-archive
path: ./sdk/${{ matrix.target }}-${{matrix.curve}}.tar.gz
retention-days: 2

Expand All @@ -75,7 +75,7 @@ jobs:
- aarch64-apple-darwin
steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -95,23 +95,28 @@ jobs:
tar -czvf ${{ matrix.target }}-${{ matrix.curve }}.tar.gz release/
- name: Upload archive artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-archive
name: ${{ matrix.target }}-${{ matrix.curve }}-archive
path: ./sdk/${{ matrix.target }}-${{ matrix.curve }}.tar.gz
retention-days: 2

prepare-prerelease:
name: Prepare pre-release
needs: [linux, macos]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: master
- name: Download artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
pattern: |
*-archive
path: ./libs
merge-multiple: true

- name: Delete tag
uses: dev-drprasad/delete-tag-and-release@v0.2.1
Expand All @@ -123,11 +128,12 @@ jobs:

- name: Create prerelease
run: |
ls -Rlah ./libs
gh release create nightly --prerelease --target master \
--title 'Nightly build ("master" branch)' \
--generate-notes \
--draft=false \
*-archive/*.tar.gz \
./libs/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}

Expand Down

0 comments on commit 0606b4b

Please sign in to comment.