Abstract The utilization of solar energy as a renewable energy source has been a subject of interest for researchers in recent years. Despite recent advances in promoting solar energy, its intermittent and unpredictable nature limits its widespread utilization in manufacturing facilities. This research paper focuses on utilizing solar energy for efficient scheduling of manufacturing processes while keeping friendly environmental conditions for the workers. The work proposes an energy-aware dynamic scheduling procedure to minimize production and building costs by optimizing the utilization of an onsite photovoltaic (PV) system energy generation. The proposed method considers various factors such as the availability of solar energy, energy consumption of different manufacturing processes, and thermal requirements of the building. A stochastic energy prediction algorithm is developed to forecast the hourly one-day-ahead solar resources based on year-long solar radiation observations collected from an outdoor solar test facility in Qatar. This study shows that using the forecasted PV output improves the overall efficiency of manufacturing processes and building thermal requirements, thus achieving up to a 20% reduction in energy costs. These findings help the development of sustainable manufacturing systems and decrease the negative environmental impacts from industries.