Bump clap from 4.5.4 to 4.5.14 #157
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI/CD" | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
permissions: | |
contents: write | |
jobs: | |
lint: | |
name: lint | |
uses: wolcomm/.github/.github/workflows/rust-lint.yml@master | |
test: | |
name: test | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: [stable, nightly] | |
args: | |
- --lib | |
- --test versions | |
include: | |
- toolchain: nightly | |
args: --doc | |
uses: wolcomm/.github/.github/workflows/rust-test.yml@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
args: ${{ matrix.args }} | |
secrets: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
build-junos-agent: | |
name: build-junos-agent | |
needs: | |
- lint | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install nix | |
uses: cachix/install-nix-action@v26 | |
- name: enable nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@v6 | |
- name: set-up signing certs | |
run: | | |
mkdir -p /tmp/certs | |
chmod 0750 /tmp/certs | |
echo "${JUNOS_VERIEXEC_KEY}" >/tmp/certs/key.pem | |
echo "${JUNOS_VERIEXEC_CERT}" >/tmp/certs/cert.pem | |
sudo chgrp -R nixbld /tmp/certs | |
chmod 0640 /tmp/certs/*.pem | |
sha1sum /tmp/certs/*.pem | |
env: | |
JUNOS_VERIEXEC_KEY: ${{ secrets.JUNOS_VERIEXEC_KEY }} | |
JUNOS_VERIEXEC_CERT: ${{ secrets.JUNOS_VERIEXEC_CERT }} | |
- name: build package | |
run: | | |
nix build .#junos-agent --extra-sandbox-paths "/certs=/tmp/certs" | |
- name: upload package artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: junos-agent | |
path: result/ | |
publish-release-artifacts: | |
name: publish-release-artifacts | |
if: github.event_name == 'release' | |
needs: | |
- build-junos-agent | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: download build artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: junos-agent | |
path: artifacts | |
- name: update release artifacts | |
uses: softprops/action-gh-release@v2 | |
with: | |
fail_on_unmatched_files: true | |
files: "artifacts/*" | |
publish-lib: | |
name: publish-lib | |
if: github.event_name == 'release' | |
needs: | |
- publish-release-artifacts | |
uses: wolcomm/.github/.github/workflows/rust-publish.yml@master | |
with: | |
package: bgpfu-lib | |
secrets: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | |
publish-netconf: | |
name: publish-netconf | |
if: github.event_name == 'release' | |
needs: | |
- publish-release-artifacts | |
uses: wolcomm/.github/.github/workflows/rust-publish.yml@master | |
with: | |
package: bgpfu-netconf | |
secrets: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} | |
publish-cli: | |
name: publish-cli | |
if: github.event_name == 'release' | |
needs: | |
- publish-lib | |
uses: wolcomm/.github/.github/workflows/rust-publish.yml@master | |
with: | |
package: bgpfu-cli | |
secrets: | |
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }} |