mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-02 08:46:05 +03:00
Add macos and windows runners to build workflow (#440)
* Change GH actions workflow to use matrix strategy and use macos and windows runners * Fix directory path * Set shell to bash on all runners
This commit is contained in:
1 parent
273938d267
commit
db5d0ae5fa
1 file changed
+21
-8
@@ -1,14 +1,23 @@
|
||||
name: "Build and Test"
|
||||
on:
|
||||
# Trigger manually
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
branches:
|
||||
- main
|
||||
- 'releases/*'
|
||||
|
||||
jobs:
|
||||
build: # make sure build/ci work properly
|
||||
runs-on: ubuntu-latest
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- macos-latest
|
||||
- windows-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
|
||||
@@ -29,13 +38,16 @@ jobs:
|
||||
- name: Run action
|
||||
uses: ./
|
||||
with:
|
||||
repository: "eloots/course-management-tools"
|
||||
tag: "1.0.0"
|
||||
fileName: "course-management-tools.zip"
|
||||
out-file-path: "./cmt"
|
||||
repository: "robinraju/probable-potato"
|
||||
tag: "1.0.1"
|
||||
fileName: "potato.jpeg"
|
||||
tarBall: true
|
||||
zipBall: true
|
||||
out-file-path: "./test-downloads"
|
||||
|
||||
- name: List downloaded files
|
||||
run: ls -lrth cmt
|
||||
shell: bash
|
||||
run: ls -lrth test-downloads
|
||||
|
||||
- name: Test download from a private repo
|
||||
uses: ./
|
||||
@@ -49,4 +61,5 @@ jobs:
|
||||
out-file-path: "./downloader-test"
|
||||
|
||||
- name: List downloaded files from private repo
|
||||
shell: bash
|
||||
run: ls -lrth downloader-test
|
||||
Reference in new issue
Block a user