-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add initial workflow to deploy image and test it.
- Loading branch information
1 parent
f57dc78
commit 12ff195
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy main & test builds | ||
|
||
on: | ||
push: | ||
branches: [main, ci] | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy main tag image | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci-skip') && !contains(github.event.head_commit.message, 'skip-ci')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build image | ||
run: docker build -t ghcr.io/mu-editor/mu-appimage:main . | ||
- name: Push master tag to ghcr.io | ||
run: docker push ghcr.io/mu-editor/mu-appimage:main | ||
|
||
build-mu-appimage: | ||
name: Build Mu AppImage with main tag image | ||
needs: deploy | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/mu-editor/mu-appimage:main | ||
steps: | ||
- name: Check Versions | ||
run: | | ||
uname -a | ||
python -c "import sys; print(sys.version)" | ||
python -c "import platform, struct; print(platform.machine(), struct.calcsize('P') * 8)" | ||
python -c "import sys; print(sys.executable)" | ||
python -m pip --version | ||
pip --version | ||
pip list --verbose | ||
- name: Clone Mu | ||
run: | | ||
git clone https://github.com/mu-editor/mu.git | ||
cd mu | ||
git checkout -b origin/docker-appimage | ||
- name: Install Mu test dependencies | ||
run: | | ||
cd mu | ||
pip install .[tests] | ||
pip list | ||
- name: Build Mu AppImage | ||
run: | | ||
cd mu | ||
xvfb-run make linux |