Skip to content
Open
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
60 changes: 59 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
name: RIA DigiDoc iOS
on: [push]
on:
push:
pull_request:
branches:
- main
schedule:
- cron: "0 3 * * 1" # Weekly
env:
BUILD_NUMBER: ${{ github.run_number }}
jobs:
build:
name: Build RIA DigiDoc on macOS
if: contains(github.repository, 'open-eid/RIA-DigiDoc-iOS')
runs-on: macos-26
timeout-minutes: 120
permissions:
contents: read
actions: read
security-events: write
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
strategy:
matrix:
xcode:
Expand Down Expand Up @@ -104,6 +119,12 @@ jobs:
swift-sh --clean-cache
echo "Fetching default configuration"
swift-sh SetupConfiguration/Sources/main.swift
- name: Initialize CodeQL
if: github.event_name != 'push' || github.ref == 'refs/heads/main'
uses: github/codeql-action/init@v4
with:
languages: swift,c-cpp
build-mode: manual
- name: Run tests
run: |
cd ${{ github.workspace }}
Expand Down Expand Up @@ -146,6 +167,9 @@ jobs:
-destination 'platform=iOS Simulator,name=iPhone 17' \
-derivedDataPath "${{ github.workspace }}/build" \
-quiet
- name: Perform CodeQL analysis
if: github.event_name != 'push' || github.ref == 'refs/heads/main'
uses: github/codeql-action/analyze@v4
- name: Rename app file
run: |
mv \
Expand All @@ -169,3 +193,37 @@ jobs:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ${{ github.workspace }}/build
rm -rf ${{ github.workspace }}/.build

codeql:
name: CodeQL (${{ matrix.language }})
if: >-
contains(github.repository, 'open-eid/RIA-DigiDoc-iOS') &&
(github.event_name == 'pull_request' ||
github.event_name == 'schedule' ||
github.ref == 'refs/heads/main')
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
actions: read
security-events: write
concurrency:
group: codeql-${{ matrix.language }}-${{ github.ref }}
cancel-in-progress: true
strategy:
fail-fast: false
matrix:
language:
- actions
- python
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"
Loading