Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision abea966ebc8d4fc7fee5cd87db27828e38bb9dec authored by vejnar on 12 August 2022, 03:00:06 UTC, committed by vejnar on 12 August 2022, 03:00:06 UTC
Fix source in CI
1 parent c3eacf5
  • Files
  • Changes
  • b878b8a
  • /
  • .sourcehut
  • /
  • arch.yml
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:abea966ebc8d4fc7fee5cd87db27828e38bb9dec
directory badge
swh:1:dir:04d09679b1d3c298ea8d084bed14c080d56b9df7
content badge
swh:1:cnt:572e983dc6d2853125b386a6732df0caff97e2e1

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
arch.yml
image: archlinux
oauth: git.sr.ht/OBJECTS:RW git.sr.ht/REPOSITORIES:RO git.sr.ht/PROFILE:RO
sources:
    - git@git.sr.ht:~vejnar/GeneAbacus
environment:
    repo: GeneAbacus
    packages: go hut
tasks:
    - update: |
        sudo pacman -Sy --noconfirm --noprogressbar archlinux-keyring
        sudo pacman -Syu --noconfirm --noprogressbar $packages
    - build: |
        cd $repo
        export GOROOT_FINAL="/usr/bin" CGO_ENABLED=0
        export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
        tag=$(git describe --exact-match 2>/dev/null || true)
        if [ -z "$tag" ]; then
            go build ./cmd/...
        else
            version=$(echo "$tag" | tr -d 'v')
            echo "Building $repo $version"
            go build -ldflags "-X main.version=$version" ./cmd/...
        fi
    - archive-tag: |
        cd $repo
        tag=$(git describe --exact-match 2>/dev/null || true)
        if [ -z "$tag" ]; then
            echo "Current commit is not a tag; abort task"
            exit 0
        fi

        # Publish archive
        version=$(echo "$tag" | tr -d 'v')
        git archive "v$version" -o "$repo-$version.tar.gz"
        hut git artifact upload --rev "$tag" "$repo-$version.tar.gz"

        # Publish binary
        mv geneabacus geneabacus-linux-amd64
        hut git artifact upload --rev "$tag" geneabacus-linux-amd64
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API