Skip to content

Commit 8ddc556

Browse files
committed
Test github actions
1 parent 03a012e commit 8ddc556

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
- dev
1919
inputs:
2020
deploy:
21-
description: 'Do you want DEPLOYMENT as well?'
21+
description: 'Do you want DEPLOYMENT onto the download page?'
2222
required: false
2323
default: 'false'
2424

@@ -35,7 +35,17 @@ jobs:
3535
run: |
3636
echo "Running builder at `pwd` as `whoami`@`hostname` on `uname -a`"
3737
echo "--- GIT INFO ---"
38-
bash build/show-git-info || true
38+
bash build/show-git-info | tee /tmp/show-git-info || true
39+
echo "--- Creating faked TRAVIS-compatible variables ---"
40+
echo "TRAVIS=true" >> $GITHUB_ENV
41+
echo "TRAVIS_BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
42+
echo "TRAVIS_COMMIT=$GITHUB_SHA" >> $GITHUB_ENV
43+
echo "TRAVIS_JOB_WEB_URL=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_ENV
44+
echo "TRAVIS_OS_NAME=$(uname | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
45+
echo "TRAVIS_PULL_REQUEST=${{ github.event.pull_request.number || 'false' }}" >> $GITHUB_ENV
46+
echo "TRAVIS_REPO_SLUG=${{ github.repository }}" >> $GITHUB_ENV
47+
echo "--- Result ---"
48+
cat $GITHUB_ENV
3949
echo "--- CURRENT DIRECTORY ---"
4050
pwd
4151
ls -la
@@ -92,6 +102,10 @@ jobs:
92102
- name: List of result binaries for Linux (native target)
93103
run: ls -l build/bin/*.native
94104

105+
- name: Creating DEB distribution
106+
if: env.should_deploy == 'true'
107+
run: make RELEASE=yes OFFICIALBUILD=yes deb
108+
95109
- name: Installing Windows SDL2 cross-development components
96110
run: build/install-cross-win-mingw-sdl-on-linux.sh /usr/bin
97111

0 commit comments

Comments
 (0)