Skip to content

Commit

Permalink
ci: port Rust build and test to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
indygreg committed Nov 22, 2020
1 parent 232160f commit 3f2bf93
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 83 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/pyoxidizer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
on:
- push
- pull_request
jobs:
pyoxidizer:
strategy:
matrix:
rust_toolchain:
- 'stable'
- 'beta'
- 'nightly'
# Remember to update MINIMUM_RUST_VERSION in pyoxidizer/src/environment.rs
# and the `Installing Rust` documentation when this changes.
- '1.45.0'
os:
- 'ubuntu-18.04'
- 'macos-10.15'
- 'windows-2019'
continue-on-error: true
runs-on: ${{ matrix.os }}
env:
IN_CI: '1'
steps:
- name: Install Linux system packages
if: ${{ matrix.os == 'ubuntu-18.04' }}
run: |
sudo apt-get install -y libyaml-dev snapcraft
- uses: actions/checkout@v2
with:
# Needed by build.rs, which needs to walk the Git history to find the
# root commit. Without this, a shallow clone (depth=1) is performed.
fetch_depth: 0

- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
profile: minimal

- uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Build Workspace
run: |
cargo build --workspace --exclude oxidized-importer
cargo run --bin pyoxidizer -- --version
# TODO get pyembed working. It is complaining about a missing libpython.
- name: Test Workspace
run: |
cargo test --workspace --exclude pyembed --exclude oxidized-importer
- name: Run Clippy
if: ${{ matrix.rust_toolchain == 'stable' || matrix.rust_toolchain == 'beta' }}
run: |
cargo clippy --workspace --exclude oxdized_importer
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PyOxidizer

[![Build Status](https://dev.azure.com/gregoryszorc/PyOxidizer/_apis/build/status/indygreg.PyOxidizer?branchName=main)](https://dev.azure.com/gregoryszorc/PyOxidizer/_build/latest?definitionId=1&branchName=main)
[![Build Status](https://github.com/indygreg/PyOxidizer/workflows/.github/workflows/pyoxidizer.yml/badge.svg)](https://github.com/indygreg/PyOxidizer/actions)

`PyOxidizer` is a utility for producing binaries that embed Python.
The over-arching goal of `PyOxidizer` is to make complex packaging and
Expand Down
62 changes: 0 additions & 62 deletions ci/azure-pipelines-template.yml

This file was deleted.

15 changes: 0 additions & 15 deletions ci/azure-pipelines.yml

This file was deleted.

5 changes: 0 additions & 5 deletions ci/install-rust-linux.sh

This file was deleted.

5 changes: 5 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ New Features
method to obtain a ``WiXBundleBuilder``, which can be used to generate an
``.exe`` installer for the application.

Other Relevant Changes
^^^^^^^^^^^^^^^^^^^^^^

* CI has been moved from Azure Pipelines to GitHub Actions.

.. _version_0_10_3:

0.10.3
Expand Down

0 comments on commit 3f2bf93

Please sign in to comment.