diff --git a/.github/workflows/opensc.yml b/.github/workflows/opensc.yml new file mode 100644 index 00000000..bec9445f --- /dev/null +++ b/.github/workflows/opensc.yml @@ -0,0 +1,25 @@ +name: opensc-build +on: [push, pull_request] +jobs: + build_test: + name: Build and Test + runs-on: ubuntu-latest + steps: + - name: Package Install + run: | + sudo sed -i 's/^# deb-src/deb-src/' /etc/apt/sources.list + sudo apt-get update + sudo apt-get install -q -y git gcc g++ cmake swig psmisc procps debian-keyring devscripts + sudo apt-get build-dep -q -y opensc + - name: Build the package + run: | + dget http://archive.ubuntu.com/ubuntu/pool/universe/o/opensc/opensc_0.23.0-0.1ubuntu1.dsc + cd opensc-0.23.0 + dch --local ppa~jammy --distribution jammy "Backports to Jammy" + DEB_BUILD_OPTIONS='parallel=2' debuild --no-sign -b + - name: Upload package files + if: ${{ always() }} + uses: actions/upload-artifact@v2 + with: + name: deb + path: opensc*.deb