mirror of
https://github.com/rosenpass/rosenpass.git
synced 2025-12-18 21:34:37 +03:00
Compare commits
8 Commits
v0.1.1-rc.
...
v0.1.1-rc.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4b4902cacd | ||
|
|
c389d39fbd | ||
|
|
12933de42b | ||
|
|
9b3f4670af | ||
|
|
8313a61cc7 | ||
|
|
175a9c20af | ||
|
|
a9c13caeaa | ||
|
|
92838250b5 |
32
.github/workflows/nix.yaml
vendored
32
.github/workflows/nix.yaml
vendored
@@ -5,6 +5,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
tags: ["v*"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -31,38 +32,45 @@ jobs:
|
|||||||
- name: Generate gitHeadInfo.gin for the whitepaper
|
- name: Generate gitHeadInfo.gin for the whitepaper
|
||||||
if: ${{ matrix.derivation == 'whitepaper' }}
|
if: ${{ matrix.derivation == 'whitepaper' }}
|
||||||
run: ( cd papers && ./tex/gitinfo2.sh && git add gitHeadInfo.gin )
|
run: ( cd papers && ./tex/gitinfo2.sh && git add gitHeadInfo.gin )
|
||||||
- name: Build ${{ matrix.derivation }}
|
- name: Build ${{ matrix.derivation }}@${{ matrix.nix-system }}
|
||||||
run: |
|
run: |
|
||||||
# build the package
|
# build the package
|
||||||
nix build .#packages.${{ matrix.nix-system }}.${{ matrix.derivation }} --print-build-logs
|
nix build .#packages.${{ matrix.nix-system }}.${{ matrix.derivation }} --print-build-logs
|
||||||
|
|
||||||
# copy over the results
|
# copy over the results
|
||||||
if [[ -f $(readlink --canonicalize result ) ]]; then
|
if [[ -f $(readlink --canonicalize result ) ]]; then
|
||||||
mkdir -- ${{ matrix.derivation }}
|
mkdir -- ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
fi
|
fi
|
||||||
cp --recursive -- $(readlink --canonicalize -- result) ${{ matrix.derivation }}
|
cp --recursive -- $(readlink --canonicalize result) ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
chmod --recursive -- ug+rw ${{ matrix.derivation }}
|
chmod --recursive ug+rw -- ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
|
|
||||||
# add version information
|
# add version information
|
||||||
git rev-parse --abbrev-ref HEAD > ${{ matrix.derivation }}/git-version
|
git rev-parse --abbrev-ref HEAD > ${{ matrix.derivation }}-${{ matrix.nix-system }}/git-version
|
||||||
git rev-parse HEAD > ${{ matrix.derivation }}/git-sha
|
git rev-parse HEAD > ${{ matrix.derivation }}-${{ matrix.nix-system }}/git-sha
|
||||||
|
|
||||||
# override the `rp` script to keep compatible with non-nix systems
|
# override the `rp` script to keep compatible with non-nix systems
|
||||||
if [[ -f ${{ matrix.derivation }}/bin/rp ]]
|
if [[ -f ${{ matrix.derivation }}-${{ matrix.nix-system }}/bin/rp ]]; then
|
||||||
then
|
cp --force -- rp ${{ matrix.derivation }}-${{ matrix.nix-system }}/bin/
|
||||||
cp --force rp ${{ matrix.derivation }}/bin/
|
|
||||||
fi
|
fi
|
||||||
- name: Upload build results
|
- name: Upload build results
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.derivation }}@${{ matrix.nix-system }}
|
name: ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
path: ${{ matrix.derivation }}
|
path: ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v') && contains(matrix.derivation, 'static')
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
|
LICENSE-MIT
|
||||||
|
LICENSE-APACHE
|
||||||
- name: Deploy PDF artifacts
|
- name: Deploy PDF artifacts
|
||||||
if: ${{ matrix.derivation == 'whitepaper' && github.ref == 'refs/heads/main' }}
|
if: ${{ matrix.derivation == 'whitepaper' && github.ref == 'refs/heads/main' }}
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: whitepaper
|
publish_dir: ${{ matrix.derivation }}-${{ matrix.nix-system }}
|
||||||
publish_branch: papers-pdf
|
publish_branch: papers-pdf
|
||||||
force_orphan: true
|
force_orphan: true
|
||||||
checks:
|
checks:
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -865,7 +865,7 @@ checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rosenpass"
|
name = "rosenpass"
|
||||||
version = "0.1.1-rc.2"
|
version = "0.1.1-rc.4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"base64",
|
"base64",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rosenpass"
|
name = "rosenpass"
|
||||||
version = "0.1.1-rc.2"
|
version = "0.1.1-rc.4"
|
||||||
authors = ["Karolin Varner <karo@cupdev.net>", "wucke13 <wucke13@gmail.com>"]
|
authors = ["Karolin Varner <karo@cupdev.net>", "wucke13 <wucke13@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "MIT OR Apache-2.0"
|
license = "MIT OR Apache-2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user