Skip to content

Chore: Upgrade all actions to latest version #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 22, 2023
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
18 changes: 9 additions & 9 deletions .github/workflows/build-winrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build-winrt
on:
release:
types: [published]

workflow_dispatch:
inputs:
publish:
Expand All @@ -20,7 +20,7 @@ jobs:
target: [Win32, x64, ARM, ARM64]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Create build environment
shell: cmd
Expand All @@ -39,7 +39,7 @@ jobs:
working-directory: ${{runner.workspace}}/build
run: cmake --build . -j8 --config Release

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: winrt-${{matrix.target}}-artifacts
path: ${{runner.workspace}}/build/dist
Expand All @@ -49,16 +49,16 @@ jobs:
runs-on: windows-latest
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'y' }}
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: winrt-Win32-artifacts
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: winrt-x64-artifacts
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: winrt-ARM-artifacts
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: winrt-ARM64-artifacts

Expand All @@ -78,8 +78,8 @@ jobs:
shell: cmd
run: nuget push huycn.zxingcpp.winrt.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: nuget-package
path: huycn.zxingcpp.winrt.nupkg

24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup Python 3
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Create Build Environment
Expand Down Expand Up @@ -79,18 +79,18 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{github.ref}}

- name: Build the ZXingCpp.xcframework
shell: sh
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}/wrappers/ios
run: ./build-release.sh

- name: Upload .xcframework
uses: actions/upload-artifact@v3
with:
name: ios-artifacts
path: ${{runner.workspace}}/${{github.event.repository.name}}/wrappers/ios/ZXingCpp.xcframework

- name: Build the demo app
shell: sh
working-directory: ${{runner.workspace}}/${{github.event.repository.name}}/wrappers/ios/demo
Expand All @@ -99,22 +99,22 @@ jobs:
build-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build the lib/app
working-directory: wrappers/android
run: ./gradlew assembleDebug # build only the debug version of the aar (faster build)

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: android-artifacts
path: "wrappers/android/zxingcpp/build/outputs/aar/zxingcpp-debug.aar"

build-wasm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: mymindstorm/setup-emsdk@v7
- uses: actions/checkout@v3
- uses: mymindstorm/setup-emsdk@v12

- name: Configure
run: emcmake cmake -Swrappers/wasm -Bbuild
Expand All @@ -125,7 +125,7 @@ jobs:
# - name: Test
# run: node build/EmGlueTests.js

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: wasm-artifacts
path: "build/zxing*"
Expand All @@ -138,10 +138,10 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: build-python-dist
on:
release:
types: [published]

workflow_dispatch:
inputs:
publish:
Expand All @@ -25,10 +25,10 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.11.2
Expand All @@ -39,26 +39,26 @@ jobs:
CIBW_BUILD: cp39-* cp310-* cp311-*
CIBW_SKIP: "*musllinux*"

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl

build-sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4

- name: Build sdist
working-directory: wrappers/python
run: python setup.py sdist

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
path: wrappers/python/dist/*.tar.gz

Expand All @@ -70,12 +70,12 @@ jobs:
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'release' || github.event.inputs.publish == 'y'
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/gh-action-pypi-publish@master
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
Expand Down