Skip to content

ci

ci #201

Workflow file for this run

name: ci
on:
push:
branches:
- 'main'
pull_request: {}
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/tkey-builder:4
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: fix
# https://github.com/actions/runner-images/issues/6775
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Make tkey-ssh-agent
run: make tkey-ssh-agent -j
- name: Make Windows binaries
run: make windows
- name: Check for SPDX tags
run: ./tools/spdx-ensure
- name: Cache binaries
uses: actions/cache@v4
with:
path: |
tkey-ssh-agent.exe
tkey-ssh-agent-tray.exe
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-
build-msi:
needs: build
runs-on: ubuntu-latest
container:
image: ghcr.io/tillitis/msi-builder:1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Retrieve binaries from cache
uses: actions/cache@v4
with:
path: |
tkey-ssh-agent.exe
tkey-ssh-agent-tray.exe
key: ${{ runner.os }}-build-${{ needs.build.outputs.commit_sha }}
restore-keys: ${{ runner.os }}-build-
- name: Move files
run: |
ls -la
cp tkey-ssh-agent{,-tray}.exe system/windows/.
- name: Build MSI
working-directory: ./system/windows
run: |
./build-msi.sh 0.0.6 tkey-ssh-agent.wxs