Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ on:
permissions:
contents: read

env:
DAGGER_VERSION: "0.21.7"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand All @@ -38,18 +35,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Lint (cargo fmt --check + clippy)
run: dagger call lint
run: nix develop --command dagger call lint
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}

- name: Test (cargo test --workspace)
run: dagger call test
run: nix develop --command dagger call test
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}

Expand Down Expand Up @@ -142,14 +140,16 @@ jobs:
# them, which is what makes a downloaded CI artifact identifiable. The
# commit has to be passed in because the Dagger module builds from a
# source directory with no `.git` in it.
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Cross-compile all targets via Dagger
uses: dagger/dagger-for-github@v8.2.0
env:
DAGGER_CLOUD_TOKEN: ${{ secrets.DAGGER_CLOUD_TOKEN }}
with:
verb: call
args: build --commit=${{ github.sha }} export --path=./build
version: ${{ env.DAGGER_VERSION }}
run: nix develop --command dagger call build --commit=${{ github.sha }} export --path=./build

- name: Upload darwin arm64 binary
uses: actions/upload-artifact@v4
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/cut-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
permissions:
contents: write

env:
DAGGER_VERSION: "0.21.7"

jobs:
create-release:
name: Cut New GitHub Release
Expand All @@ -27,14 +24,15 @@ jobs:
app-id: ${{ secrets.PAPER_COMPUTE_CO_BOT_APP_ID }}
private-key: ${{ secrets.PAPER_COMPUTE_CO_BOT_PRIVATE_KEY }}

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Create release via ghrelease
run: |
dagger call -m github.com/papercomputeco/daggerverse/ghrelease \
nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghrelease@45e997aec734ec4875ff57bebed2317e1bd49185 \
--token=env://GH_TOKEN \
with-repo \
--repo="${{ github.repository }}" \
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ on:
permissions:
contents: write

env:
DAGGER_VERSION: "0.21.7"

jobs:
check:
runs-on: depot-ubuntu-24.04
Expand Down Expand Up @@ -52,10 +49,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Move nightly tag up to HEAD
run: |
Expand All @@ -74,7 +72,7 @@ jobs:
# with nothing uploaded.
- name: Build and upload nightly artifacts
run: |
dagger call \
nix develop --command dagger call \
nightly \
--commit="${{ github.sha }}" \
--endpoint=env://BUCKET_ENDPOINT \
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ permissions:
contents: read
pull-requests: read

env:
DAGGER_VERSION: "0.21.7"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -54,16 +51,18 @@ jobs:
if: github.event.pull_request.user.login != 'dependabot[bot]'
uses: actions/checkout@v4

- name: Install Dagger
- name: Install Nix
if: github.event.pull_request.user.login != 'dependabot[bot]'
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
if: github.event.pull_request.user.login != 'dependabot[bot]'
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Check PR title conformance
if: github.event.pull_request.user.login != 'dependabot[bot]'
run: |
dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \
nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \
--token=env://GH_TOKEN \
--repo="${{ github.repository }}" \
check-pull-request \
Expand Down Expand Up @@ -115,20 +114,24 @@ jobs:
github.event.pull_request.head.repo.full_name == github.repository
uses: actions/checkout@v4

- name: Install Dagger
- name: Install Nix
if: >-
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
if: >-
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14

- name: Check Linear magic word
if: >-
github.event.pull_request.user.login != 'dependabot[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
run: |
dagger call -m github.com/papercomputeco/daggerverse/ghcontrib \
nix develop --command dagger call -m github.com/papercomputeco/daggerverse/ghcontrib@45e997aec734ec4875ff57bebed2317e1bd49185 \
--token=env://GH_TOKEN \
--repo="${{ github.repository }}" \
check-pull-request-linear-magic-word \
Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
release:
types: [published]

env:
DAGGER_VERSION: "0.21.7"

jobs:
release:
runs-on: depot-ubuntu-24.04
Expand All @@ -17,10 +14,12 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install Dagger
uses: dagger/dagger-for-github@v8.2.0
with:
version: ${{ env.DAGGER_VERSION }}
- name: Install Nix
uses: DeterminateSystems/determinate-nix-action@d96678350ffd6a456235832eb11e1c491589b7bb # v3.21.8

- name: Cache Nix store
uses: DeterminateSystems/magic-nix-cache-action@908b263ff629f4cc17666315b7fd3ec127c6244d # v14


# `--version` and `--commit` are what a released binary answers
# `tapesctl version` with. They have to be passed in: the Dagger module
Expand All @@ -40,7 +39,7 @@ jobs:
# release it just cut.
- name: Build and upload release artifacts
run: |
dagger call \
nix develop --command dagger call \
release-latest \
--version="${{ github.event.release.tag_name }}" \
--commit="${{ github.sha }}" \
Expand Down
2 changes: 1 addition & 1 deletion dagger.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tapesctl",
"engineVersion": "v0.21.7",
"engineVersion": "v0.21.8",
"sdk": {
"source": "go"
},
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading