Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Switch CI to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 committed Oct 27, 2020
1 parent 2bb992f commit df7d2f2
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Main CI Workflow

on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
tags: '*'

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
run: |
BRANCH_OR_TAG=${GITHUB_REF#refs/heads/}
BRANCH_OR_TAG=${BRANCH_OR_TAG#refs/tags/}
git clone --single-branch --branch $BRANCH_OR_TAG --depth 1 https://${{ secrets.CLONE_TOKEN }}:[email protected]/${{ github.repository }}.git .
- name: Cleanup
run: sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY"
- name: Install prerequisites
run: sudo apt install make curl zip unzip check -qq
- name: Build
run: make
- name: Upload artifacts
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
artifacts="-a ./VoidMusl.zip"
tag_name="${GITHUB_REF#refs/tags/}"
hub release create $artifacts -m "$tag_name" "$tag_name"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

0 comments on commit df7d2f2

Please sign in to comment.