diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index a2c723b4..f7364df0 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -13,9 +13,7 @@ jobs: runs-on: ubuntu-18.04 if: github.event_name != 'pull_request' || contains('dreamer,kcgen,ant-222', github.actor) == false steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Run shellcheck run: ./scripts/verify-bash.sh @@ -38,9 +36,7 @@ jobs: runs-on: ubuntu-18.04 needs: run_linters steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Install C++ compiler and libraries run: sudo apt-get install python3-setuptools $(./scripts/list-build-dependencies.sh -m apt -c gcc) @@ -106,9 +102,7 @@ jobs: tsan: 0 # our test does not trigger multiple threads yet uasan: 36 steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Install C++ compiler and libraries env: diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 7b287283..b8002691 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -40,10 +40,7 @@ jobs: env: CHERE_INVOKING: yes steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 - + - uses: actions/checkout@v2 - name: Check repo for commits id: repo-meta shell: bash diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index ebbdc50a..45577ed9 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -18,7 +18,7 @@ jobs: name: Coverity static analyzer runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Log environment run: ./scripts/log-env.sh diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b358dbaa..937eda93 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -32,9 +32,7 @@ jobs: flags: -c clang -v 8 max_warnings: 38 steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Install C++ compiler and libraries run: sudo apt-get install -y $(./scripts/list-build-dependencies.sh -m apt ${{ matrix.conf.flags }}) @@ -67,7 +65,7 @@ jobs: runs-on: ubuntu-18.04 if: github.event_name != 'pull_request' || contains('dreamer,kcgen,ant-222', github.actor) == false steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Install C++ compiler and libraries run: sudo apt-get install -y tree libpng-dev librsvg2-bin $(./scripts/list-build-dependencies.sh -m apt -c gcc) @@ -91,6 +89,7 @@ jobs: - name: Inject version string run: | set -x + git fetch --prune --unshallow export VERSION=$(git describe --abbrev=4) sed -i "s/AC_INIT(dosbox,git)/AC_INIT(dosbox,$VERSION)/" configure.ac echo ::set-env name=VERSION::$VERSION diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 1d6628cb..1956a06b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -22,9 +22,7 @@ jobs: flags: -c gcc -v 9 max_warnings: 58 steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - name: Install C++ compiler and libraries run: brew install $(./scripts/list-build-dependencies.sh -m brew ${{ matrix.conf.flags}}) - name: Prepare compiler cache @@ -60,7 +58,7 @@ jobs: CXX: ccache clang++ FLAGS: -DNDEBUG -O3 -fno-math-errno -fstrict-aliasing -march=nehalem -flto=thin -pipe steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install C++ compiler and libraries run: brew install librsvg $(./scripts/list-build-dependencies.sh -m brew -c clang) - name: Prepare compiler cache @@ -90,6 +88,7 @@ jobs: - name: Inject version string run: | set -x + git fetch --prune --unshallow export VERSION=$(git describe --abbrev=5) sed -i -e "s/AC_INIT(dosbox,git)/AC_INIT(dosbox,$VERSION)/" configure.ac echo ::set-env name=VERSION::$VERSION diff --git a/.github/workflows/pvs-studio.yml b/.github/workflows/pvs-studio.yml index f1535f88..7c56124e 100644 --- a/.github/workflows/pvs-studio.yml +++ b/.github/workflows/pvs-studio.yml @@ -14,9 +14,7 @@ jobs: env: debfile: pvs-studio-7.07.37949.43-amd64.deb steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - run: sudo apt-get update - name: Log and setup environment run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 34aeb7f2..56879a82 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -36,9 +36,7 @@ jobs: CCACHE_MAXSIZE: "64M" CCACHE_COMPRESS: "true" steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - name: Get Date id: get-date shell: bash @@ -98,9 +96,7 @@ jobs: matrix: type: [Debug] steps: - - uses: actions/checkout@v1 - with: - fetch-depth: 1 + - uses: actions/checkout@v2 - name: Install packages shell: pwsh run: | @@ -122,7 +118,7 @@ jobs: runs-on: windows-latest if: github.event_name != 'pull_request' || contains('dreamer,kcgen,ant-222', github.actor) == false steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: Install packages shell: pwsh run: | @@ -135,6 +131,7 @@ jobs: shell: bash run: | set -x + git fetch --prune --unshallow export VERSION=$(git describe --abbrev=4) sed -i "s|VERSION \"git\"|VERSION \"$VERSION\"|" src/platform/visualc/config.h echo ::set-env name=VERSION::$VERSION