Compare View

switch
from
...
to
 
Commits (13)
.github/workflows/codeql.yml
1   ----
2   -name: CodeQL
  1 +# For most projects, this workflow file will not need changing; you simply need
  2 +# to commit it to your repository.
  3 +#
  4 +# You may wish to alter this file to override the set of languages analyzed,
  5 +# or to provide custom queries or build logic.
  6 +#
  7 +# ******** NOTE ********
  8 +# We have attempted to detect the languages in your repository. Please check
  9 +# the `language` matrix defined below to confirm you have the correct set of
  10 +# supported CodeQL languages.
  11 +#
  12 +name: "CodeQL"
  13 +
3 14 on:
4 15 push:
5   - branches:
6   - - develop
7   - - master
8   - pull_request:
9   - branches:
10   - - develop
  16 + branches: [ "develop", "master" ]
  17 +
11 18 jobs:
12 19 analyze:
13 20 name: Analyze
  21 + # Runner size impacts CodeQL analysis time. To learn more, please see:
  22 + # - https://gh.io/recommended-hardware-resources-for-running-codeql
  23 + # - https://gh.io/supported-runners-and-hardware-resources
  24 + # - https://gh.io/using-larger-runners
  25 + # Consider using larger runners for possible analysis time improvements.
14 26 runs-on: ubuntu-22.04
  27 + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
15 28 permissions:
  29 + # required for all workflows
  30 + security-events: write
  31 +
  32 + # only required for workflows in private repositories
16 33 actions: read
17 34 contents: read
18   - security-events: write
  35 +
19 36 strategy:
20 37 fail-fast: false
21 38 matrix:
22   - language:
23   - - cpp
  39 + language: [ 'c-cpp' ]
  40 + # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
  41 + # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
  42 + # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
  43 + # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
  44 +
24 45 steps:
25   - - name: Checkout
26   - uses: actions/checkout@v3
27   - - name: Install Packages
28   - run: |
29   - sudo apt-get update
30   - sudo apt-get install --yes git make autopoint gettext libssl-dev libcurl4-openssl-dev
31   - - name: Initialize CodeQL
32   - uses: github/codeql-action/init@v2
33   - with:
34   - languages: ${{ matrix.language }}
35   - queries: +security-and-quality
36   - - name: Autobuild
37   - uses: github/codeql-action/autobuild@v2
38   - - name: Perform CodeQL Analysis
39   - uses: github/codeql-action/analyze@v2
40   - with:
41   - category: /language:${{ matrix.language }}
  46 + - name: Checkout repository
  47 + uses: actions/checkout@v4
  48 +
  49 + - name: Install Packages
  50 + run: |
  51 + echo 'deb https://download.opensuse.org/repositories/home:/PerryWerneck:/udjat/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:PerryWerneck:udjat.list
  52 + curl -fsSL https://download.opensuse.org/repositories/home:/PerryWerneck:/udjat/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_PerryWerneck_udjat.gpg > /dev/null
  53 + sudo apt-get update
  54 + sudo apt-get install --yes make autotools-dev autoconf automake pkg-config gettext libssl-dev libcurl4-openssl-dev
  55 +
  56 + # Initializes the CodeQL tools for scanning.
  57 + - name: Initialize CodeQL
  58 + uses: github/codeql-action/init@v3
  59 + with:
  60 + languages: ${{ matrix.language }}
  61 + # If you wish to specify custom queries, you can do so here or in a config file.
  62 + # By default, queries listed here will override any specified in a config file.
  63 + # Prefix the list here with "+" to use these queries and those in the config file.
  64 +
  65 + # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
  66 + # queries: security-extended,security-and-quality
  67 +
  68 +
  69 + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
  70 + # If this step fails, then you should remove it and run the build manually (see below)
  71 + - name: Autobuild
  72 + uses: github/codeql-action/autobuild@v3
  73 +
  74 + # ℹ️ Command-line programs to run using the OS shell.
  75 + # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
  76 +
  77 + # If the Autobuild fails above, remove it and uncomment the following three lines.
  78 + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
  79 +
  80 + # - run: |
  81 + # echo "Run, Build Application using script"
  82 + # ./location_of_script_within_repo/buildscript.sh
  83 +
  84 + - name: Perform CodeQL Analysis
  85 + uses: github/codeql-action/analyze@v3
  86 + with:
  87 + category: "/language:${{matrix.language}}"
... ...
.github/workflows/macos.yml
1   -name: MacOS Test
  1 +name: check-macos
2 2 on:
3 3 push:
4   - branches:
5   - - macos
  4 + branches: [ "macos" ]
  5 + pull_request:
  6 + branches: [ "master" ]
  7 +
6 8 jobs:
7   - build:
8   - name: Build for macos
  9 + macos-build:
9 10 runs-on: macos-latest
10 11 steps:
11 12 - name: Checkout
... ... @@ -15,6 +16,10 @@ jobs:
15 16 brew update
16 17 brew install xz automake binutils coreutils curl gettext libtool openssl pkgconfig
17 18 find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  19 + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  20 + find /usr/local/lib/node_modules/npm -delete
  21 + rm -f /usr/local/bin/go || true
  22 + rm -f /usr/local/bin/gofmt || true
18 23 brew upgrade
19 24 - name: build
20 25 run: ./mac/ci-build.sh
... ...
.github/workflows/msys2.yml 0 → 100644
... ... @@ -0,0 +1,30 @@
  1 +name: check-msys2
  2 +on:
  3 + push:
  4 + branches: [ "win" ]
  5 + pull_request:
  6 + branches: [ "master" ]
  7 +
  8 +jobs:
  9 + msys2-build:
  10 + runs-on: windows-latest
  11 + defaults:
  12 + run:
  13 + shell: msys2 {0}
  14 + steps:
  15 + - uses: actions/checkout@v3
  16 + - uses: oprypin/find-latest-tag@v1
  17 + id: gettag
  18 + with:
  19 + repository: PerryWerneck/lib3270
  20 + releases-only: true
  21 + - uses: msys2/setup-msys2@v2
  22 + with:
  23 + msystem: mingw64
  24 + update: true
  25 + install: dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool
  26 + - name: CI-Build
  27 + run: |
  28 + dos2unix PKGBUILD.mingw
  29 + makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
  30 +
... ...
.github/workflows/publish.yml
1 1 name: Publish
2 2 on:
3 3 push:
4   - branches:
5   - - develop
6   - pull_request:
7   - branches:
8   - - master
  4 + branches: [ "macos" ]
  5 + tags: [ "*" ]
  6 +
9 7 jobs:
10   - msys2-mingw:
11   - name: Publish for MinGW 64
  8 + publish-mingw:
12 9 runs-on: windows-latest
13 10 defaults:
14 11 run:
... ... @@ -24,23 +21,22 @@ jobs:
24 21 with:
25 22 msystem: mingw64
26 23 update: true
27   - install: zip dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool
  24 + install: dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool
28 25 - name: CI-Build
29   - run: ./win/mingw-build.sh
30   - - name: Bundle
31   - run: ./win/bundle.msys --build
  26 + run: |
  27 + dos2unix PKGBUILD.mingw
  28 + makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
32 29 - uses: ncipollo/release-action@v1
33 30 with:
34 31 tag: ${{ steps.gettag.outputs.tag }}
35   - artifacts: "*-lib3270-*.pkg.tar.zst,*-lib3270-*.zip"
  32 + artifacts: "*3270*.pkg.tar.zst"
36 33 allowUpdates: true
37 34 draft: false
38 35 makeLatest: true
39 36 omitBody: true
40 37 omitPrereleaseDuringUpdate: true
41 38 replacesArtifacts: true
42   - msys2-msvc:
43   - name: Publish devel for MSVC 64
  39 + publish-msvc:
44 40 runs-on: windows-latest
45 41 defaults:
46 42 run:
... ... @@ -69,8 +65,7 @@ jobs:
69 65 omitBody: true
70 66 omitPrereleaseDuringUpdate: true
71 67 replacesArtifacts: true
72   - macos:
73   - name: Publish for macos
  68 + publish-macos:
74 69 runs-on: macos-latest
75 70 steps:
76 71 - name: Checkout
... ... @@ -85,6 +80,8 @@ jobs:
85 80 brew update
86 81 brew install xz automake binutils coreutils curl gettext libtool openssl pkgconfig
87 82 find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  83 + find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
  84 + find /usr/local/lib/node_modules/npm -delete
88 85 rm -f /usr/local/bin/go || true
89 86 rm -f /usr/local/bin/gofmt || true
90 87 brew upgrade
... ...