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

Commit df7d2f2

Browse files
committed
Switch CI to GitHub Actions
1 parent 2bb992f commit df7d2f2

File tree

2 files changed

+32
-20
lines changed

2 files changed

+32
-20
lines changed

.github/workflows/main.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Main CI Workflow
2+
3+
on:
4+
pull_request:
5+
branches: [ master ]
6+
push:
7+
branches: [ master ]
8+
tags: '*'
9+
10+
jobs:
11+
build-and-publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
run: |
16+
BRANCH_OR_TAG=${GITHUB_REF#refs/heads/}
17+
BRANCH_OR_TAG=${BRANCH_OR_TAG#refs/tags/}
18+
git clone --single-branch --branch $BRANCH_OR_TAG --depth 1 https://${{ secrets.CLONE_TOKEN }}:[email protected]/${{ github.repository }}.git .
19+
- name: Cleanup
20+
run: sudo rm -rf "/usr/local/share/boost" "$AGENT_TOOLSDIRECTORY"
21+
- name: Install prerequisites
22+
run: sudo apt install make curl zip unzip check -qq
23+
- name: Build
24+
run: make
25+
- name: Upload artifacts
26+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
27+
run: |
28+
artifacts="-a ./VoidMusl.zip"
29+
tag_name="${GITHUB_REF#refs/tags/}"
30+
hub release create $artifacts -m "$tag_name" "$tag_name"
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

-20
This file was deleted.

0 commit comments

Comments
 (0)